diff options
| author | Matt Corallo <[email protected]> | 2012-07-02 20:14:02 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-01-27 03:03:04 -0500 |
| commit | f339e9e3391465de4921aea3194f3021016f07d1 (patch) | |
| tree | 1b66477cf9da12a178c095ed402ab137dc0ec2ac /src/net.cpp | |
| parent | Use a copy in place of mapMultiArgs["-addnode"]. (diff) | |
| download | discoin-f339e9e3391465de4921aea3194f3021016f07d1.tar.xz discoin-f339e9e3391465de4921aea3194f3021016f07d1.zip | |
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 46700bd15..4a32859dc 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 |