Commit 324df85548d42c548ba23cab64d403d54c9ccc77

Con Kolivas 2013-11-15T23:46:41

Don't run device restart code if the device is not enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index e1e4f87..8b7fc7e 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3880,6 +3880,8 @@ static void restart_threads(void)
 		cgpu = mining_thr[i]->cgpu;
 		if (unlikely(!cgpu))
 			continue;
+		if (cgpu->deven != DEV_ENABLED)
+			continue;
 		mining_thr[i]->work_restart = true;
 		flush_queue(cgpu);
 		cgpu->drv->flush_work(cgpu);