mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Shut down the avalon mining thread if the device disappears.
This commit is contained in:
parent
641883a572
commit
a10371b98e
@ -1060,6 +1060,12 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
||||
info->reset = true;
|
||||
}
|
||||
|
||||
if (unlikely(avalon->usbinfo.nodev)) {
|
||||
applog(LOG_ERR, "AVA%d: Device disappeared, shutting down thread",
|
||||
avalon->device_id);
|
||||
avalon->shutdown = true;
|
||||
}
|
||||
|
||||
/* This hashmeter is just a utility counter based on returned shares */
|
||||
return hash_count;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user