mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +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:
parent
d9b3037e4b
commit
c9bf06d19b
@ -6311,7 +6311,7 @@ void hash_queued_work(struct thr_info *mythr)
|
|||||||
applog(LOG_ERR, "%s %d failure, disabling!", drv->name, cgpu->device_id);
|
applog(LOG_ERR, "%s %d failure, disabling!", drv->name, cgpu->device_id);
|
||||||
cgpu->deven = DEV_DISABLED;
|
cgpu->deven = DEV_DISABLED;
|
||||||
dev_error(cgpu, REASON_THREAD_ZERO_HASH);
|
dev_error(cgpu, REASON_THREAD_ZERO_HASH);
|
||||||
mt_disable(mythr, thr_id, drv);
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
hashes_done += hashes;
|
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);
|
applog(LOG_ERR, "%s %d failure, disabling!", drv->name, cgpu->device_id);
|
||||||
cgpu->deven = DEV_DISABLED;
|
cgpu->deven = DEV_DISABLED;
|
||||||
dev_error(cgpu, REASON_THREAD_ZERO_HASH);
|
dev_error(cgpu, REASON_THREAD_ZERO_HASH);
|
||||||
mt_disable(mythr, thr_id, drv);
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
hashes_done += hashes;
|
hashes_done += hashes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user