Browse Source

In failover-only mode we need to queue enough work for the local pool and ignore the total queued count.

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

+ 6 - 1
cgminer.c

@@ -3826,7 +3826,12 @@ bool queue_request(struct thr_info *thr, bool needed)
 	pps = __pool_pending_staged(cp);
 	mutex_unlock(stgd_lock);
 
-	if (pps && ps >= maxq) {
+	if (opt_fail_only) {
+		if (pps >= maxq) {
+			ret = true;
+			goto out;
+		}
+	} else if (pps && ps >= maxq) {
 		ret = true;
 		goto out;
 	}