diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-04 11:39:12 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-04 11:39:17 +0100 |
commit | 7821db30e16149a3d8b7f467a4e5ac276af6ccbd (patch) | |
tree | 625caa1ca255af87d1e0892d9bec5c8872688db8 /src | |
parent | 496691741dfe252ff477913a89e5363aa7030d71 (diff) | |
parent | 885cfdd2179a2aae733d0690f5a2ef23d181768e (diff) |
Merge #9671: Fix super-unlikely race introduced in 236618061a445d2cb11e72
885cfdd Fix super-unlikely race introduced in 236618061a445d2cb11e72 (Matt Corallo)
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 2 |
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; } |