Skip to content

Commit

Permalink
Make nServices atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Feb 10, 2017
1 parent 96f42d8 commit 0f31872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f31872

Please sign in to comment.