summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/BlockingSslClientSocket.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-30 13:00:02 +0100
committerMattes D <github@xoft.cz>2015-12-30 13:00:02 +0100
commit0054104017b6339e10e0bbc24d0fdf94d1061260 (patch)
tree2d4d08c20a554889a74c315d178c7b21d98daf78 /src/PolarSSL++/BlockingSslClientSocket.h
parentMerge pull request #2837 from cuberite/FixMonsterBurn (diff)
downloadcuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.gz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.bz2
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.lz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.xz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.zst
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.zip
Diffstat (limited to '')
-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;