Skip to content

Commit 0f31872

Browse files
committed
Make nServices atomic
1 parent 96f42d8 commit 0f31872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ class CNode
564564
friend class CConnman;
565565
public:
566566
// socket
567-
ServiceFlags nServices;
567+
std::atomic<ServiceFlags> nServices;
568568
ServiceFlags nServicesExpected;
569569
SOCKET hSocket;
570570
size_t nSendSize; // total size of all vSendMsg entries

0 commit comments

Comments
 (0)