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 CryptoCentric committed Feb 24, 2019
1 parent b2bd0b3 commit 528c7da
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 528c7da

Please sign in to comment.