mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Disable bitfury device thread on it disappearing.
This commit is contained in:
parent
d1c95832c6
commit
87ddfcc8a6
@ -283,6 +283,12 @@ cascade:
|
|||||||
info->nonces--;
|
info->nonces--;
|
||||||
return (int64_t)0xffffffff;
|
return (int64_t)0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unlikely(bitfury->usbinfo.nodev)) {
|
||||||
|
applog(LOG_WARNING, "%s %d: Device disappeared, disabling thread",
|
||||||
|
bitfury->drv->name, bitfury->device_id);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user