mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 17:53:11 +00:00
select_pool does not switch back to the primary once lagging is disabled.
This commit is contained in:
parent
5e2c1323a9
commit
f5ac84b804
@ -1955,9 +1955,11 @@ static inline struct pool *select_pool(bool lagging)
|
|||||||
if (pool_strategy == POOL_BALANCE)
|
if (pool_strategy == POOL_BALANCE)
|
||||||
return select_balanced(cp);
|
return select_balanced(cp);
|
||||||
|
|
||||||
if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only))
|
if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only)) {
|
||||||
pool = cp;
|
if (cp->prio != 0)
|
||||||
else
|
switch_pools(NULL);
|
||||||
|
pool = current_pool();
|
||||||
|
} else
|
||||||
pool = NULL;
|
pool = NULL;
|
||||||
|
|
||||||
while (!pool) {
|
while (!pool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user