aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2012-07-02 20:14:02 +0200
committerMatt Corallo <git@bluematt.me>2013-01-27 03:03:04 -0500
commitf339e9e3391465de4921aea3194f3021016f07d1 (patch)
tree1b66477cf9da12a178c095ed402ab137dc0ec2ac /src
parent74088e862e29821562652986c6bd7c14c3783327 (diff)
Make ThreadOpenAddedConnections2 exit quicker if(GetNameProxy()).
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 46700bd154..4a32859dc6 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