Check for pool enabled in cnx_needed.
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;