Skip to content

Commit 2a962d4

Browse files
committed
Fixup style a bit by moving { to the same line as if statements
1 parent 8465631 commit 2a962d4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/net.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,21 +1066,18 @@ void CConnman::ThreadSocketHandler()
10661066
BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy)
10671067
{
10681068
// wait until threads are done using it
1069-
if (pnode->GetRefCount() <= 0)
1070-
{
1069+
if (pnode->GetRefCount() <= 0) {
10711070
bool fDelete = false;
10721071
{
10731072
TRY_LOCK(pnode->cs_inventory, lockInv);
1074-
if (lockInv)
1075-
{
1073+
if (lockInv) {
10761074
TRY_LOCK(pnode->cs_vSend, lockSend);
10771075
if (lockSend) {
10781076
fDelete = true;
10791077
}
10801078
}
10811079
}
1082-
if (fDelete)
1083-
{
1080+
if (fDelete) {
10841081
vNodesDisconnected.remove(pnode);
10851082
DeleteNode(pnode);
10861083
}

0 commit comments

Comments
 (0)