Do not signal outbound semaphore if uninitialized

This commit is contained in:
Pieter Wuille 2012-05-12 17:44:14 +02:00
parent 45dcf63a62
commit 89b5616d10
1 changed files with 3 additions and 2 deletions

View File

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