diff --git a/src/net.cpp b/src/net.cpp index 965c171554..cafb69cfe4 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2378,9 +2378,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() @@ -2398,10 +2406,6 @@ void CConnman::Stop() if (threadSocketHandler.joinable()) threadSocketHandler.join(); - if (semAddnode) - for (int i=0; ipost(); - if (semMasternodeOutbound) for (int i=0; ipost();