Browse Source

Check for pool enabled in cnx_needed.

Con Kolivas 12 years ago
parent
commit
6fec07ab7e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
cgminer.c

@@ -4800,6 +4800,9 @@ static bool cnx_needed(struct pool *pool)
 {
 {
 	struct pool *cp;
 	struct pool *cp;
 
 
+	if (pool->enabled != POOL_ENABLED)
+		return false;
+
 	/* Balance strategies need all pools online */
 	/* Balance strategies need all pools online */
 	if (pool_strategy == POOL_BALANCE)
 	if (pool_strategy == POOL_BALANCE)
 		return true;
 		return true;