Skip to content

Commit 42071ca

Browse files
committed
Make fDisconnect an std::atomic
1 parent bc121b0 commit 42071ca

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
@@ -630,7 +630,7 @@ class CNode
630630
const bool fInbound;
631631
bool fNetworkNode;
632632
bool fSuccessfullyConnected;
633-
bool fDisconnect;
633+
std::atomic_bool fDisconnect;
634634
// We use fRelayTxes for two purposes -
635635
// a) it allows us to not relay tx invs before receiving the peer's version message
636636
// b) the peer may tell us in its version message that we should not relay tx invs

0 commit comments

Comments
 (0)