Skip to content

Commit

Permalink
Merge bitcoin#9131: fNetworkActive is not protected by a lock, use an…
Browse files Browse the repository at this point in the history
… atomic

079142b fNetworkActive is not protected by a lock, use an atomic (Jonas Schnelli)
  • Loading branch information
laanwj authored and codablock committed Jan 15, 2018
1 parent e711f4a commit 0932079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Expand Up @@ -471,7 +471,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 0932079

Please sign in to comment.