aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-11-11 14:09:52 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2016-11-11 14:09:52 +0100
commit079142b75771c5b39a76a1eaa6347bce5e99c0b3 (patch)
treead0957349e54d876915ae8643cd960cea26c1eac /src
parentab914a65301bd48f2b6c7a64bf57295ae74f2902 (diff)
fNetworkActive is not protected by a lock, use an atomic
Diffstat (limited to 'src')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
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<ListenSocket> vhListenSocket;
- bool fNetworkActive;
+ std::atomic<bool> fNetworkActive;
banmap_t setBanned;
CCriticalSection cs_setBanned;
bool setBannedIsDirty;