Run node deletions outside of cs_vNodes

This commit is contained in:
Pieter Wuille 2013-07-25 02:25:25 +02:00
parent 6055b9101b
commit 49d754d915

View file

@ -801,7 +801,8 @@ void ThreadSocketHandler()
vNodesDisconnected.push_back(pnode);
}
}
}
{
// Delete disconnected nodes
list<CNode*> vNodesDisconnectedCopy = vNodesDisconnected;
BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy)