From f339e9e3391465de4921aea3194f3021016f07d1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 2 Jul 2012 20:14:02 +0200 Subject: [PATCH] Make ThreadOpenAddedConnections2 exit quicker if(GetNameProxy()). --- src/net.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net.cpp b/src/net.cpp index 46700bd1..4a32859d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1544,6 +1544,8 @@ void ThreadOpenAddedConnections2(void* parg) CSemaphoreGrant grant(*semOutbound); OpenNetworkConnection(addr, &grant, strAddNode.c_str()); Sleep(500); + if (fShutdown) + return; } vnThreadsRunning[THREAD_ADDEDCONNECTIONS]--; Sleep(120000); // Retry every 2 minutes