mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Bugfix: thread_shutdown shouldn't try to free the device, since it's needed afterward
This commit is contained in:
parent
afa3fa56b6
commit
124ee9b28a
@ -398,21 +398,8 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
|
||||
|
||||
static void icarus_shutdown(struct thr_info *thr)
|
||||
{
|
||||
struct cgpu_info *icarus;
|
||||
|
||||
if (thr->cgpu) {
|
||||
icarus = thr->cgpu;
|
||||
|
||||
if (icarus->device_path)
|
||||
free(icarus->device_path);
|
||||
|
||||
close(icarus->device_fd);
|
||||
|
||||
devices[icarus->device_id] = NULL;
|
||||
free(icarus);
|
||||
|
||||
thr->cgpu = NULL;
|
||||
}
|
||||
struct cgpu_info *icarus = thr->cgpu;
|
||||
icarus_close(icarus->device_fd);
|
||||
}
|
||||
|
||||
struct device_api icarus_api = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user