Browse Source

Do not signal outbound semaphore if uninitialized

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

1
src/net.cpp

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

Loading…
Cancel
Save