Commit 3ebba278e09b71d9f6ffb9a676ef55610c546a23

ckolivas 2014-02-27T17:05:02

Check for lack of thread in watchdog thread for a failed startup.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 36d1158..df6f30f 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7709,6 +7709,9 @@ static void *watchdog_thread(void __maybe_unused *userdata)
 			char dev_str[8];
 			int gpu;
 
+			if (!thr)
+				continue;
+
 			cgpu->drv->get_stats(cgpu);
 
 			gpu = cgpu->device_id;