aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-03-08 14:55:28 -0500
committerMatt Corallo <[email protected]>2017-03-08 14:55:28 -0500
commit819b513a5415d1669b5440e214862cda6c2261f8 (patch)
tree0f1d1bef8ab360a1a2db164722e2d0206d2958ed /src
parentFix shutdown hang with >= 8 -addnodes set (diff)
downloaddiscoin-819b513a5415d1669b5440e214862cda6c2261f8.tar.xz
discoin-819b513a5415d1669b5440e214862cda6c2261f8.zip
Add missing braces in semaphore posts in net
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 12c62d9da..4434793c4 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()