diff options
author | Matt Corallo <git@bluematt.me> | 2017-02-04 16:44:05 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-02-04 16:44:05 -0500 |
commit | 2a962d4540a253f63803d1f145fa26b938e69633 (patch) | |
tree | 79ec56379d85434fd8b7672647754fb529b246ca | |
parent | 8465631845eac3db834942a4feb50f65c3401c68 (diff) |
Fixup style a bit by moving { to the same line as if statements
-rw-r--r-- | src/net.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net.cpp b/src/net.cpp index 5cddc6f44d..704d3b8d34 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1066,21 +1066,18 @@ void CConnman::ThreadSocketHandler() BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy) { // wait until threads are done using it - if (pnode->GetRefCount() <= 0) - { + if (pnode->GetRefCount() <= 0) { bool fDelete = false; { TRY_LOCK(pnode->cs_inventory, lockInv); - if (lockInv) - { + if (lockInv) { TRY_LOCK(pnode->cs_vSend, lockSend); if (lockSend) { fDelete = true; } } } - if (fDelete) - { + if (fDelete) { vNodesDisconnected.remove(pnode); DeleteNode(pnode); } |