Make nServices atomic

This commit is contained in:
Matt Corallo 2017-02-06 12:20:16 -05:00
parent 96f42d8a12
commit 0f31872615

View File

@ -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