1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

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

This commit is contained in:
Con Kolivas 2013-11-07 22:27:21 +11:00 committed by Noel Maersk
parent d9b3037e4b
commit c9bf06d19b

View File

@ -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)
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;