diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2013-07-25 02:25:25 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2013-10-15 22:34:25 +0200 |
commit | 49d754d91522f5eceec7b6a6aef2e027009a7b67 (patch) | |
tree | 8bf28ef0162b5c0e69725465cc3c92d1e1048fe5 | |
parent | 6055b9101bc91647fb80c7ed86fcff90e3e6dedf (diff) |
Run node deletions outside of cs_vNodes
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 99457be0f5..e8baa8b383 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -801,7 +801,8 @@ void ThreadSocketHandler() vNodesDisconnected.push_back(pnode); } } - + } + { // Delete disconnected nodes list<CNode*> vNodesDisconnectedCopy = vNodesDisconnected; BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy) |