mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +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();
|
interruptNet();
|
||||||
InterruptSocks5(true);
|
InterruptSocks5(true);
|
||||||
|
|
||||||
if (semOutbound)
|
if (semOutbound) {
|
||||||
for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++)
|
for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++) {
|
||||||
semOutbound->post();
|
semOutbound->post();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (semAddnode)
|
if (semAddnode) {
|
||||||
for (int i=0; i<nMaxAddnode; i++)
|
for (int i=0; i<nMaxAddnode; i++) {
|
||||||
semAddnode->post();
|
semAddnode->post();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConnman::Stop()
|
void CConnman::Stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue