Skip to content

Commit 62af164

Browse files
committed
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)
2 parents 4333b1c + 079142b commit 62af164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class CConnman
403403
unsigned int nReceiveFloodSize;
404404

405405
std::vector<ListenSocket> vhListenSocket;
406-
bool fNetworkActive;
406+
std::atomic<bool> fNetworkActive;
407407
banmap_t setBanned;
408408
CCriticalSection cs_setBanned;
409409
bool setBannedIsDirty;

0 commit comments

Comments
 (0)