Add missing braces in semaphore posts in net
This commit is contained in:
parent
e007b243c4
commit
819b513a54
1 changed files with 8 additions and 4 deletions
12
src/net.cpp
12
src/net.cpp
|
@ -2319,14 +2319,18 @@ 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…
Reference in a new issue