From 079142b75771c5b39a76a1eaa6347bce5e99c0b3 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Fri, 11 Nov 2016 14:09:52 +0100 Subject: fNetworkActive is not protected by a lock, use an atomic --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index e2d88b478d..7a32e21f4a 100644 --- a/src/net.h +++ b/src/net.h @@ -403,7 +403,7 @@ private: unsigned int nReceiveFloodSize; std::vector vhListenSocket; - bool fNetworkActive; + std::atomic fNetworkActive; banmap_t setBanned; CCriticalSection cs_setBanned; bool setBannedIsDirty; -- cgit v1.2.3