diff --git a/src/net.cpp b/src/net.cpp index 0f0a7bf8d..37e7dfed4 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1804,7 +1804,7 @@ void CConnman::ThreadOpenAddedConnections() } } // Retry every 60 seconds if a connection was attempted, otherwise two seconds - if (!interruptNet.sleep_for(std::chrono::seconds(tried ? 60 : 2))); + if (!interruptNet.sleep_for(std::chrono::seconds(tried ? 60 : 2))) return; } }