In failover-only mode we need to queue enough work for the local pool and ignore the total queued count.
diff --git a/cgminer.c b/cgminer.c
index b48a911..057552a 100644
--- a/cgminer.c
+++ b/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;
}