From 579c1299c681abfafa2eea2ca69866c4f2f321b1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 27 Aug 2012 10:10:50 +1000 Subject: [PATCH] There is no need to try to switch pools in select_pool since the current pool is actually not affected by the choice of pool to get work from. --- cgminer.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cgminer.c b/cgminer.c index 0f882726..8dc1deb7 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1955,11 +1955,9 @@ static inline struct pool *select_pool(bool lagging) if (pool_strategy == POOL_BALANCE) return select_balanced(cp); - if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only)) { - if (cp->prio != 0) - switch_pools(NULL); - pool = current_pool(); - } else + if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only)) + pool = cp; + else pool = NULL; while (!pool) {