Skip to content

Commit 079142b

Browse files
committed
fNetworkActive is not protected by a lock, use an atomic
1 parent ab914a6 commit 079142b

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)