aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-02-04 11:39:12 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-04 11:39:17 +0100
commit7821db30e16149a3d8b7f467a4e5ac276af6ccbd (patch)
tree625caa1ca255af87d1e0892d9bec5c8872688db8 /src/net.cpp
parent496691741dfe252ff477913a89e5363aa7030d71 (diff)
parent885cfdd2179a2aae733d0690f5a2ef23d181768e (diff)
Merge #9671: Fix super-unlikely race introduced in 236618061a445d2cb11e72
885cfdd Fix super-unlikely race introduced in 236618061a445d2cb11e72 (Matt Corallo)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index db914096f8..1559bd20cd 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1860,11 +1860,11 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
if (fAddnode)
pnode->fAddnode = true;
+ GetNodeSignals().InitializeNode(pnode, *this);
{
LOCK(cs_vNodes);
vNodes.push_back(pnode);
}
- GetNodeSignals().InitializeNode(pnode, *this);
return true;
}