mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
bflsc queue_full shouldn't ask for more work if device is zombie
This commit is contained in:
parent
4f0f5fb791
commit
4bfa4c3091
@ -1544,9 +1544,11 @@ static bool bflsc_queue_full(struct cgpu_info *bflsc)
|
|||||||
// if something is wrong with a device try the next one available
|
// if something is wrong with a device try the next one available
|
||||||
// TODO: try them all? Add an unavailable flag to sc_devs[i] init to 0 here first
|
// TODO: try them all? Add an unavailable flag to sc_devs[i] init to 0 here first
|
||||||
while (++tries < 3) {
|
while (++tries < 3) {
|
||||||
// Device is gone
|
// Device is gone - shouldn't normally get here
|
||||||
if (bflsc->usbinfo.nodev)
|
if (bflsc->usbinfo.nodev) {
|
||||||
return false;
|
ret = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
dev = -1;
|
dev = -1;
|
||||||
rd_lock(&(sc_info->stat_lock));
|
rd_lock(&(sc_info->stat_lock));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user