mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
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.
This commit is contained in:
parent
4a210d4eff
commit
579c1299c6
@ -1955,11 +1955,9 @@ 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))
|
||||||
if (cp->prio != 0)
|
pool = cp;
|
||||||
switch_pools(NULL);
|
else
|
||||||
pool = current_pool();
|
|
||||||
} else
|
|
||||||
pool = NULL;
|
pool = NULL;
|
||||||
|
|
||||||
while (!pool) {
|
while (!pool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user