Commit 2834eb8d6d1a201e7be06db350a6f4d66507b7c0

Con Kolivas 2013-10-08T23:35:22

Kill off threads that have failed using hash_sole_work instead of just disabling them.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 3e74d4b..a70730a 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6251,7 +6251,8 @@ static void hash_sole_work(struct thr_info *mythr)
 				applog(LOG_ERR, "%s %d failure, disabling!", drv->name, cgpu->device_id);
 				cgpu->deven = DEV_DISABLED;
 				dev_error(cgpu, REASON_THREAD_ZERO_HASH);
-				mt_disable(mythr, thr_id, drv);
+				cgpu->shutdown = true;
+				break;
 			}
 
 			hashes_done += hashes;