From 4e2502bb512c00fa76c59ed8c758c2a6781a7425 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 8 Mar 2017 14:55:28 -0500 Subject: [PATCH] Add missing braces in semaphore posts in net Github-Pull: #9953 Rebased-From: 819b513a5415d1669b5440e214862cda6c2261f8 --- src/net.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index e35a89e7498..03c8e5ecc49 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; ipost(); + } + } } void CConnman::Stop()