Merge #9131: fNetworkActive is not protected by a lock, use an atomic

079142b fNetworkActive is not protected by a lock, use an atomic (Jonas Schnelli)
This commit is contained in:
Wladimir J. van der Laan 2016-11-16 10:09:44 +01:00
commit 62af164638
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 1 additions and 1 deletions

View File

@ -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;