Commit 6fec07ab7ee185bb2ae4e075fd7e4536f753de98

Con Kolivas 2013-05-31T23:10:46

Check for pool enabled in cnx_needed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index bfe1db3..df52d58 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4800,6 +4800,9 @@ static bool cnx_needed(struct pool *pool)
 {
 	struct pool *cp;
 
+	if (pool->enabled != POOL_ENABLED)
+		return false;
+
 	/* Balance strategies need all pools online */
 	if (pool_strategy == POOL_BALANCE)
 		return true;