Commit c892ded6e0d0efa760b8fc340d97756ab4ccb288

Con Kolivas 2012-08-12T10:40:58

Make sure there are true pending staged work items as well in failover only mode.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 057552a..137dfc2 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3827,7 +3827,7 @@ bool queue_request(struct thr_info *thr, bool needed)
 	mutex_unlock(stgd_lock);
 
 	if (opt_fail_only) {
-		if (pps >= maxq) {
+		if (pps >= maxq && ps) {
 			ret = true;
 			goto out;
 		}