From 42071ca2640c6de156d72a32b52bff1020c4a38d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 25 Nov 2016 18:03:12 -0800 Subject: [PATCH] Make fDisconnect an std::atomic --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index 7a32e21f4a..31385c231e 100644 --- a/src/net.h +++ b/src/net.h @@ -630,7 +630,7 @@ public: const bool fInbound; bool fNetworkNode; bool fSuccessfullyConnected; - bool fDisconnect; + std::atomic_bool fDisconnect; // We use fRelayTxes for two purposes - // a) it allows us to not relay tx invs before receiving the peer's version message // b) the peer may tell us in its version message that we should not relay tx invs