1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Don't run device restart code if the device is not enabled.

This commit is contained in:
Con Kolivas 2013-11-15 23:46:41 +11:00 committed by Noel Maersk
parent 9ed6c3b1b5
commit b5eddd1159

View File

@ -3689,6 +3689,8 @@ static void restart_threads(void)
cgpu = mining_thr[i]->cgpu;
if (unlikely(!cgpu))
continue;
if (cgpu->deven != DEV_ENABLED)
continue;
mining_thr[i]->work_restart = true;
flush_queue(cgpu);
cgpu->drv->flush_work(cgpu);