mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Don't run device restart code if the device is not enabled.
This commit is contained in:
parent
9ed6c3b1b5
commit
b5eddd1159
@ -3689,6 +3689,8 @@ static void restart_threads(void)
|
|||||||
cgpu = mining_thr[i]->cgpu;
|
cgpu = mining_thr[i]->cgpu;
|
||||||
if (unlikely(!cgpu))
|
if (unlikely(!cgpu))
|
||||||
continue;
|
continue;
|
||||||
|
if (cgpu->deven != DEV_ENABLED)
|
||||||
|
continue;
|
||||||
mining_thr[i]->work_restart = true;
|
mining_thr[i]->work_restart = true;
|
||||||
flush_queue(cgpu);
|
flush_queue(cgpu);
|
||||||
cgpu->drv->flush_work(cgpu);
|
cgpu->drv->flush_work(cgpu);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user