diff options
| author | Matt Corallo <[email protected]> | 2017-02-04 16:44:05 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-04 16:44:05 -0500 |
| commit | 2a962d4540a253f63803d1f145fa26b938e69633 (patch) | |
| tree | 79ec56379d85434fd8b7672647754fb529b246ca /src/net.cpp | |
| parent | Always enforce lock strict lock ordering (try or not) (diff) | |
| download | discoin-2a962d4540a253f63803d1f145fa26b938e69633.tar.xz discoin-2a962d4540a253f63803d1f145fa26b938e69633.zip | |
Fixup style a bit by moving { to the same line as if statements
Diffstat (limited to 'src/net.cpp')
| -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 5cddc6f44..704d3b8d3 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); } |