aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-25 18:03:12 -0800
committerMatt Corallo <git@bluematt.me>2016-11-25 18:03:12 -0800
commit42071ca2640c6de156d72a32b52bff1020c4a38d (patch)
tree2b1eb4b2214ed1b489df5ee079c69a792998b75d
parentbc121b0eb19713ec72002b5be03ba5ac35903a17 (diff)
Make fDisconnect an std::atomic
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
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