Browse Source

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

nfactor-troky
Con Kolivas 11 years ago committed by Noel Maersk
parent
commit
b5eddd1159
  1. 2
      cgminer.c

2
cgminer.c

@ -3689,6 +3689,8 @@ static void restart_threads(void) @@ -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);

Loading…
Cancel
Save