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 andvgal committed Dec 24, 2018
1 parent 5d9a921 commit 9df0124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Expand Up @@ -475,7 +475,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 9df0124

Please sign in to comment.