Only set the lagging flag for select_pool() on failed getwork if we're not in opt_fail_only mode.
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;
}
-