We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8465631 commit 2a962d4Copy full SHA for 2a962d4
src/net.cpp
@@ -1066,21 +1066,18 @@ void CConnman::ThreadSocketHandler()
1066
BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy)
1067
{
1068
// wait until threads are done using it
1069
- if (pnode->GetRefCount() <= 0)
1070
- {
+ if (pnode->GetRefCount() <= 0) {
1071
bool fDelete = false;
1072
1073
TRY_LOCK(pnode->cs_inventory, lockInv);
1074
- if (lockInv)
1075
+ if (lockInv) {
1076
TRY_LOCK(pnode->cs_vSend, lockSend);
1077
if (lockSend) {
1078
fDelete = true;
1079
}
1080
1081
1082
- if (fDelete)
1083
+ if (fDelete) {
1084
vNodesDisconnected.remove(pnode);
1085
DeleteNode(pnode);
1086
0 commit comments