diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 13b5f87e4..dc448fc11 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -23,7 +23,7 @@ #include - +#include // fwd: @@ -447,7 +447,7 @@ private: // TODO: Add Kicking here as well } ; - eState m_State; + std::atomic m_State; /** m_State needs to be locked in the Destroy() function so that the destruction code doesn't run twice on two different threads */ cCriticalSection m_CSDestroyingState;