Skip to content

Commit

Permalink
Add missing braces in semaphore posts in net
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Mar 8, 2017
1 parent e007b24 commit 819b513
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2319,13 +2319,17 @@ void CConnman::Interrupt()
interruptNet();
InterruptSocks5(true);

if (semOutbound)
for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++)
if (semOutbound) {
for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++) {
semOutbound->post();
}
}

if (semAddnode)
for (int i=0; i<nMaxAddnode; i++)
if (semAddnode) {
for (int i=0; i<nMaxAddnode; i++) {
semAddnode->post();
}
}
}

void CConnman::Stop()
Expand Down

0 comments on commit 819b513

Please sign in to comment.