Browse Source

Do not signal outbound semaphore if uninitialized

0.8
Pieter Wuille 13 years ago
parent
commit
89b5616d10
  1. 5
      src/net.cpp

5
src/net.cpp

@ -1887,8 +1887,9 @@ bool StopNode() @@ -1887,8 +1887,9 @@ bool StopNode()
fShutdown = true;
nTransactionsUpdated++;
int64 nStart = GetTime();
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
semOutbound->post();
if (semOutbound)
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
semOutbound->post();
do
{
int nThreadsRunning = 0;

Loading…
Cancel
Save