aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-07-25 02:25:25 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-10-15 22:34:25 +0200
commit49d754d91522f5eceec7b6a6aef2e027009a7b67 (patch)
tree8bf28ef0162b5c0e69725465cc3c92d1e1048fe5
parent6055b9101bc91647fb80c7ed86fcff90e3e6dedf (diff)
Run node deletions outside of cs_vNodes
-rw-r--r--src/net.cpp3
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)