From 17badef789bf74fb3f4c5d95ac59c080ae656201 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 12 May 2012 17:44:14 +0200 Subject: [PATCH] Do not signal outbound semaphore if uninitialized --- src/net.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index 1227412..37b01f7 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1703,8 +1703,9 @@ bool StopNode() fShutdown = true; nTransactionsUpdated++; int64 nStart = GetTime(); - for (int i=0; ipost(); + if (semOutbound) + for (int i=0; ipost(); do { int nThreadsRunning = 0; -- 1.7.1