Make ThreadOpenAddedConnections2 exit quicker if(GetNameProxy()).
This commit is contained in:
parent
74088e862e
commit
f339e9e339
@ -1544,6 +1544,8 @@ void ThreadOpenAddedConnections2(void* parg)
|
|||||||
CSemaphoreGrant grant(*semOutbound);
|
CSemaphoreGrant grant(*semOutbound);
|
||||||
OpenNetworkConnection(addr, &grant, strAddNode.c_str());
|
OpenNetworkConnection(addr, &grant, strAddNode.c_str());
|
||||||
Sleep(500);
|
Sleep(500);
|
||||||
|
if (fShutdown)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
vnThreadsRunning[THREAD_ADDEDCONNECTIONS]--;
|
vnThreadsRunning[THREAD_ADDEDCONNECTIONS]--;
|
||||||
Sleep(120000); // Retry every 2 minutes
|
Sleep(120000); // Retry every 2 minutes
|
||||||
|
Loading…
Reference in New Issue
Block a user