Commit 289d6807ef471f407734e5de8885efdfa79e3445

Con Kolivas 2012-12-03T16:16:00

Check for correct absence of opt_fail_only in cnx_needed.

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 5c1e278..9a33f46 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4694,12 +4694,10 @@ static bool cnx_needed(struct pool *pool)
 		return true;
 	if (pool_strategy == POOL_LOADBALANCE)
 		return true;
-	if (opt_fail_only)
-		return true;
 	cp = current_pool();
 	if (cp == pool)
 		return true;
-	if (!cp->has_gbt && !cp->has_stratum)
+	if (!cp->has_gbt && !cp->has_stratum && !opt_fail_only)
 		return true;
 	return false;
 }