Skip to content

Commit

Permalink
fNetworkActive is not protected by a lock, use an atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Nov 11, 2016
1 parent ab914a6 commit 079142b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Expand Up @@ -403,7 +403,7 @@ class CConnman
unsigned int nReceiveFloodSize;

std::vector<ListenSocket> vhListenSocket;
bool fNetworkActive;
std::atomic<bool> fNetworkActive;
banmap_t setBanned;
CCriticalSection cs_setBanned;
bool setBannedIsDirty;
Expand Down

0 comments on commit 079142b

Please sign in to comment.