From 2cdafa0ca2f01028fd407f64cf97ca6a931d2a62 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sat, 4 Feb 2017 11:39:12 +0100 Subject: [PATCH] Merge #9671: Fix super-unlikely race introduced in 236618061a445d2cb11e72 885cfdd Fix super-unlikely race introduced in 236618061a445d2cb11e72 (Matt Corallo) --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 0f7e064a9..49f5899d3 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1910,11 +1910,11 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai if (fConnectToMasternode) pnode->fMasternode = true; + GetNodeSignals().InitializeNode(pnode, *this); { LOCK(cs_vNodes); vNodes.push_back(pnode); } - GetNodeSignals().InitializeNode(pnode, *this); return true; }