aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-06 12:20:16 -0500
committerMatt Corallo <git@bluematt.me>2017-02-10 11:32:41 -0500
commit0f3187261519c7568ef4211ce12b9740a3c1200f (patch)
treedde1f3a08dfe991f4ec9c901f739b3d047620398 /src
parent96f42d8a12871b8d5c4e31fd27d8135f97c6b3e0 (diff)
Make nServices atomic
Diffstat (limited to 'src')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 566284c70b..cf742a8caa 100644
--- a/src/net.h
+++ b/src/net.h
@@ -564,7 +564,7 @@ class CNode
friend class CConnman;
public:
// socket
- ServiceFlags nServices;
+ std::atomic<ServiceFlags> nServices;
ServiceFlags nServicesExpected;
SOCKET hSocket;
size_t nSendSize; // total size of all vSendMsg entries