Commit 34f23f691b5784edc01446b6c32f9a07a344e8e9

Con Kolivas 2013-11-07T22:27:21

Break out of the hash work loops when a failure is detected instead of dropping into mt disable.

diff --git a/cgminer.c b/cgminer.c
index 6864c50..e5cccc7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6682,7 +6682,7 @@ void hash_queued_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);
+			break;
 		}
 
 		hashes_done += hashes;
@@ -6729,7 +6729,7 @@ void hash_driver_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);
+			break;
 		}
 
 		hashes_done += hashes;