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 nServices; ServiceFlags nServicesExpected; SOCKET hSocket; size_t nSendSize; // total size of all vSendMsg entries