From 89b5616d107294a1f496226f22b9966e4221cf35 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 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index f12afb78e..0e5a89878 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1887,8 +1887,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;