From b86aa20bf65db27f95438d3af9a4d612a69a9171 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 4 Dec 2012 11:06:35 +1100 Subject: [PATCH] Make need connection return true if a pool is idle. --- cgminer.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cgminer.c b/cgminer.c index 4237789f..6064c34f 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4732,10 +4732,18 @@ static bool cnx_needed(struct pool *pool) { struct pool *cp; + /* Balance strategies need all pools online */ if (pool_strategy == POOL_BALANCE) return true; if (pool_strategy == POOL_LOADBALANCE) return true; + + /* Idle pool needs something to kick it alive again */ + if (pool->idle) + return true; + + /* Getwork pools without opt_fail_only need backup pools up to be able + * to leak shares */ cp = current_pool(); if (cp == pool) return true;