diff --git a/src/net.cpp b/src/net.cpp index 6ff63d473..12c62d9da 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2322,6 +2322,10 @@ void CConnman::Interrupt() if (semOutbound) for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++) semOutbound->post(); + + if (semAddnode) + for (int i=0; ipost(); } void CConnman::Stop() @@ -2337,10 +2341,6 @@ void CConnman::Stop() if (threadSocketHandler.joinable()) threadSocketHandler.join(); - if (semAddnode) - for (int i=0; ipost(); - if (fAddressesInitialized) { DumpData();