Commit cbef2a6a65b8d5236396516ba1670f73aecbe33b

Con Kolivas 2012-07-12T16:40:15

Only try to shut down work cleanly if we've successfully connected and started mining.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 5a8169d..55d3943 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");