Fixup style a bit by moving { to the same line as if statements

This commit is contained in:
Matt Corallo 2017-02-04 16:44:05 -05:00
parent 8465631845
commit 2a962d4540
1 changed files with 3 additions and 6 deletions

View File

@ -1066,21 +1066,18 @@ void CConnman::ThreadSocketHandler()
BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy) BOOST_FOREACH(CNode* pnode, vNodesDisconnectedCopy)
{ {
// wait until threads are done using it // wait until threads are done using it
if (pnode->GetRefCount() <= 0) if (pnode->GetRefCount() <= 0) {
{
bool fDelete = false; bool fDelete = false;
{ {
TRY_LOCK(pnode->cs_inventory, lockInv); TRY_LOCK(pnode->cs_inventory, lockInv);
if (lockInv) if (lockInv) {
{
TRY_LOCK(pnode->cs_vSend, lockSend); TRY_LOCK(pnode->cs_vSend, lockSend);
if (lockSend) { if (lockSend) {
fDelete = true; fDelete = true;
} }
} }
} }
if (fDelete) if (fDelete) {
{
vNodesDisconnected.remove(pnode); vNodesDisconnected.remove(pnode);
DeleteNode(pnode); DeleteNode(pnode);
} }