Browse Source

Merge commit '44e8121' into bfgminer

Luke Dashjr 13 years ago
parent
commit
e532b0587a
1 changed files with 4 additions and 3 deletions
  1. 4 3
      miner.c

+ 4 - 3
miner.c

@@ -2577,9 +2577,10 @@ static void *get_work_thread(void *userdata)
 
 	if (!ts)
 		lagging = true;
-	else if (((cs || cq >= opt_queue) && ts >= maxq) ||
-		 ((cs || cq) && tq >= maxq) || clone_available())
-			goto out;
+	if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
+	    ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq) ||
+	    clone_available())
+		goto out;
 
 	ret_work = make_work();
 	if (wc->thr)