mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-05 21:21:17 +00:00
Add missing braces in semaphore posts in net
Github-Pull: #9953 Rebased-From: 819b513a5415d1669b5440e214862cda6c2261f8
This commit is contained in:
parent
d2548a4f97
commit
4e2502bb51
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…
x
Reference in New Issue
Block a user