Commit 6d1949e69452f5b3d9f1dc099ce38bd8a743da46

Con Kolivas 2012-08-16T15:46:41

Make sure we don't opt out of queueing more work if all the queued work is from one pool.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 847b084..a39a83b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2409,7 +2409,7 @@ static void *get_work_thread(void *userdata)
 	mutex_unlock(stgd_lock);
 
 	if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
-	    ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq) ||
+	    ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq && cq < maxq) ||
 	    clone_available())
 		goto out;