diff --git a/src/client/http/requestmanager/RequestManager.h b/src/client/http/requestmanager/RequestManager.h index 88b45199a..c7cbb1ee9 100644 --- a/src/client/http/requestmanager/RequestManager.h +++ b/src/client/http/requestmanager/RequestManager.h @@ -1,6 +1,7 @@ #pragma once #include "common/ExplicitSingleton.h" #include "common/String.h" +#include #include #include #include @@ -36,8 +37,8 @@ namespace http State state = ready; std::mutex stateMx; std::condition_variable stateCv; - int bytesTotal = 0; - int bytesDone = 0; + std::atomic bytesTotal = 0; + std::atomic bytesDone = 0; int statusCode = 0; ByteString responseData; std::vector responseHeaders;