Browse Source

Bugfix: Scheduler needs to unpause disabled devices, even if it isn't waking them up

Luke Dashjr 13 years ago
parent
commit
4e5f781463
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.c

+ 2 - 1
main.c

@@ -4293,10 +4293,11 @@ static void *watchdog_thread(void *userdata)
 				struct thr_info *thr;
 				thr = &thr_info[i];
 
+				thr->pause = false;
+				
 				/* Don't touch disabled GPUs */
 				if (thr->cgpu->is_gpu && !gpu_devices[thr->cgpu->cpu_gpu])
 					continue;
-				thr->pause = false;
 				tq_push(thr->q, &ping);
 			}
 		}