1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Disable bitfury device thread on it disappearing.

This commit is contained in:
Con Kolivas 2013-09-30 09:27:44 +10:00
parent d1c95832c6
commit 87ddfcc8a6

View File

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