Browse Source

Merge #9671: Fix super-unlikely race introduced in 236618061a

885cfdd Fix super-unlikely race introduced in 236618061a (Matt Corallo)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
7821db30e1
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1860,11 +1860,11 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai @@ -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;
}

Loading…
Cancel
Save