aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2016-11-25 18:03:12 -0800
committerMatt Corallo <[email protected]>2016-11-25 18:03:12 -0800
commit42071ca2640c6de156d72a32b52bff1020c4a38d (patch)
tree2b1eb4b2214ed1b489df5ee079c69a792998b75d /src
parentMerge #9216: Doc: Fix copypasted comment (diff)
downloaddiscoin-42071ca2640c6de156d72a32b52bff1020c4a38d.tar.xz
discoin-42071ca2640c6de156d72a32b52bff1020c4a38d.zip
Make fDisconnect an std::atomic
Diffstat (limited to 'src')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 7a32e21f4..31385c231 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