From cbef2a6a65b8d5236396516ba1670f73aecbe33b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 12 Jul 2012 16:40:15 +1000 Subject: [PATCH] Only try to shut down work cleanly if we've successfully connected and started mining. --- cgminer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgminer.c b/cgminer.c index 5a8169d7..55d3943b 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1983,6 +1983,9 @@ static void __kill_work(void) struct thr_info *thr; int i; + if (!successful_connect) + return; + applog(LOG_INFO, "Received kill message"); applog(LOG_DEBUG, "Killing off watchpool thread");