Check for lack of thread in watchdog thread for a failed startup.
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;