Browse Source

select_pool does not switch back to the primary once lagging is disabled.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
f5ac84b804
  1. 8
      cgminer.c

8
cgminer.c

@ -1955,9 +1955,11 @@ static inline struct pool *select_pool(bool lagging) @@ -1955,9 +1955,11 @@ 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))
pool = cp;
else
if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only)) {
if (cp->prio != 0)
switch_pools(NULL);
pool = current_pool();
} else
pool = NULL;
while (!pool) {

Loading…
Cancel
Save