diff options
| author | Matt Corallo <[email protected]> | 2017-03-08 14:55:28 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-03-17 14:56:57 -0700 |
| commit | 4e2502bb512c00fa76c59ed8c758c2a6781a7425 (patch) | |
| tree | a29e4079599fffbc1e83d0cf718b0b8451c02904 /src/net.cpp | |
| parent | Fix shutdown hang with >= 8 -addnodes set (diff) | |
| download | discoin-4e2502bb512c00fa76c59ed8c758c2a6781a7425.tar.xz discoin-4e2502bb512c00fa76c59ed8c758c2a6781a7425.zip | |
Add missing braces in semaphore posts in net
Github-Pull: #9953
Rebased-From: 819b513a5415d1669b5440e214862cda6c2261f8
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp index e35a89e74..03c8e5ecc 100644 --- a/src/net.cpp +++ b/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() |