Browse Source

Add missing braces in semaphore posts in net

Github-Pull: #9953
Rebased-From: 819b513a54
0.14
Matt Corallo 8 years ago
parent
commit
4e2502bb51
  1. 12
      src/net.cpp

12
src/net.cpp

@ -2318,13 +2318,17 @@ void CConnman::Interrupt() @@ -2318,13 +2318,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()

Loading…
Cancel
Save