Browse Source

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

nfactor-troky
Con Kolivas 11 years ago committed by Noel Maersk
parent
commit
c9bf06d19b
  1. 4
      cgminer.c

4
cgminer.c

@ -6311,7 +6311,7 @@ void hash_queued_work(struct thr_info *mythr) @@ -6311,7 +6311,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;
@ -6358,7 +6358,7 @@ void hash_driver_work(struct thr_info *mythr) @@ -6358,7 +6358,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;

Loading…
Cancel
Save