Browse Source

Don't keep queueing work indefinitely if we're in opt failover mode.

Con Kolivas 13 years ago
parent
commit
e16b7566bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

@@ -2409,7 +2409,7 @@ static void *get_work_thread(void *userdata)
 	mutex_unlock(stgd_lock);
 	mutex_unlock(stgd_lock);
 
 
 	if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
 	if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
-	    ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq && cq < maxq) ||
+	    ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq && ((cq < maxq && !opt_fail_only) || opt_fail_only)) ||
 	    clone_available())
 	    clone_available())
 		goto out;
 		goto out;