mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Add missing braces in semaphore posts in net
Github-Pull: #9953
Rebased-From: 819b513a54
This commit is contained in:
parent
d2548a4f97
commit
4e2502bb51
1 changed files with 8 additions and 4 deletions
12
src/net.cpp
12
src/net.cpp
|
|
@ -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…
Add table
Add a link
Reference in a new issue