Add missing braces in semaphore posts in net

Github-Pull: #9953
Rebased-From: 819b513a54
This commit is contained in:
Matt Corallo 2017-03-08 14:55:28 -05:00
parent d2548a4f97
commit 4e2502bb51

View file

@ -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()