diff --git a/src/net.cpp b/src/net.cpp index 4a32859dc6f..f89d2899fed 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1554,7 +1554,7 @@ void ThreadOpenAddedConnections2(void* parg) return; } - loop + for (unsigned int i = 0; true; i++) { list lAddresses(0); { @@ -1594,7 +1594,7 @@ void ThreadOpenAddedConnections2(void* parg) BOOST_FOREACH(vector& vserv, lservAddressesToAdd) { CSemaphoreGrant grant(*semOutbound); - OpenNetworkConnection(CAddress(*(vserv.begin())), &grant); + OpenNetworkConnection(CAddress(vserv[i % vserv.size()]), &grant); Sleep(500); if (fShutdown) return;