diff options
author | Matt Corallo <matt@bluematt.me> | 2012-07-02 20:14:02 +0200 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2013-01-27 03:03:04 -0500 |
commit | f339e9e3391465de4921aea3194f3021016f07d1 (patch) | |
tree | 1b66477cf9da12a178c095ed402ab137dc0ec2ac /src/net.cpp | |
parent | 74088e862e29821562652986c6bd7c14c3783327 (diff) |
Make ThreadOpenAddedConnections2 exit quicker if(GetNameProxy()).
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
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 |