Browse Source

Connect backup stratum pools if the primary pool cannot deliver work.

Con Kolivas 13 years ago
parent
commit
21a36f4840
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -4899,6 +4899,8 @@ static bool cnx_needed(struct pool *pool)
 	 * it. */
 	 * it. */
 	if (pool_strategy == POOL_FAILOVER && pool->prio < cp_prio())
 	if (pool_strategy == POOL_FAILOVER && pool->prio < cp_prio())
 		return true;
 		return true;
+	if (pool_unworkable(cp))
+		return true;
 	return false;
 	return false;
 }
 }