Browse Source

Don't send a ping to a dynamic device if it's not enabled as that will just enable it for one pass and then disable it again.

Con Kolivas 14 years ago
parent
commit
1dff4297fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      device-gpu.c

+ 1 - 1
device-gpu.c

@@ -453,7 +453,7 @@ void pause_dynamic_threads(int gpu)
 		if (!thread_no++)
 			continue;
 		thr->pause = cgpu->dynamic;
-		if (!cgpu->dynamic)
+		if (!cgpu->dynamic && cgpu->enabled)
 			tq_push(thr->q, &ping);
 	}
 }