aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 12c62d9dae..4434793c4c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2319,13 +2319,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()