Browse Source

Make ThreadOpenAddedConnections2 exit quicker if(GetNameProxy()).

0.8
Matt Corallo 13 years ago committed by Matt Corallo
parent
commit
f339e9e339
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1544,6 +1544,8 @@ void ThreadOpenAddedConnections2(void* parg) @@ -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

Loading…
Cancel
Save