summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/BlockingSslClientSocket.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-30 13:36:17 +0100
committerMattes D <github@xoft.cz>2015-12-30 13:36:17 +0100
commit1210eb13165f547d0a1820156e12adf171b0a435 (patch)
tree2d4d08c20a554889a74c315d178c7b21d98daf78 /src/PolarSSL++/BlockingSslClientSocket.h
parentMerge pull request #2837 from cuberite/FixMonsterBurn (diff)
parentFixed problems in cBlockingSslClientSocket. (diff)
downloadcuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.gz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.bz2
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.lz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.xz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.zst
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.zip
Diffstat (limited to 'src/PolarSSL++/BlockingSslClientSocket.h')
-rw-r--r--src/PolarSSL++/BlockingSslClientSocket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PolarSSL++/BlockingSslClientSocket.h b/src/PolarSSL++/BlockingSslClientSocket.h
index 462ee95a7..3c61f7f89 100644
--- a/src/PolarSSL++/BlockingSslClientSocket.h
+++ b/src/PolarSSL++/BlockingSslClientSocket.h
@@ -9,6 +9,7 @@
#pragma once
+#include <atomic>
#include "OSSupport/Network.h"
#include "CallbackSslContext.h"
@@ -81,7 +82,7 @@ protected:
AString m_LastErrorText;
/** Set to true if the connection established successfully. */
- bool m_IsConnected;
+ std::atomic<bool> m_IsConnected;
/** Protects m_IncomingData against multithreaded access. */
cCriticalSection m_CSIncomingData;