diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-11 14:09:52 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-11 14:09:52 +0100 |
commit | 079142b75771c5b39a76a1eaa6347bce5e99c0b3 (patch) | |
tree | ad0957349e54d876915ae8643cd960cea26c1eac /src | |
parent | ab914a65301bd48f2b6c7a64bf57295ae74f2902 (diff) |
fNetworkActive is not protected by a lock, use an atomic
Diffstat (limited to 'src')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |