Commit c5d9f3ac609af380452175a437062218e0dc5ae0

Con Kolivas 2012-12-10T10:32:21

Only set the lagging flag for select_pool() on failed getwork if we're not in opt_fail_only mode.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cgminer.c b/cgminer.c
index b2ffb5c..deb541c 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6845,7 +6845,7 @@ retry:
 				pool_died(pool);
 			sleep(5);
 			push_curl_entry(ce, pool);
-			pool = select_pool(true);
+			pool = select_pool(!opt_fail_only);
 			goto retry;
 		}
 		if (ts >= max_staged)
@@ -6860,4 +6860,3 @@ retry:
 
 	return 0;
 }
-