mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
Only bypass unusable pools if they're not the selected ones.
This commit is contained in:
parent
1468feb0d3
commit
a5d35e822a
@ -3403,7 +3403,7 @@ void switch_pools(struct pool *selected)
|
|||||||
case POOL_LOADBALANCE:
|
case POOL_LOADBALANCE:
|
||||||
for (i = 0; i < total_pools; i++) {
|
for (i = 0; i < total_pools; i++) {
|
||||||
pool = priority_pool(i);
|
pool = priority_pool(i);
|
||||||
if (pool_unusable(pool))
|
if (pool_unusable(pool) && pool != selected)
|
||||||
continue;
|
continue;
|
||||||
pool_no = pool->pool_no;
|
pool_no = pool->pool_no;
|
||||||
break;
|
break;
|
||||||
@ -3423,7 +3423,7 @@ void switch_pools(struct pool *selected)
|
|||||||
if (next_pool >= total_pools)
|
if (next_pool >= total_pools)
|
||||||
next_pool = 0;
|
next_pool = 0;
|
||||||
pool = pools[next_pool];
|
pool = pools[next_pool];
|
||||||
if (pool_unusable(pool))
|
if (pool_unusable(pool) && pool != selected)
|
||||||
continue;
|
continue;
|
||||||
pool_no = next_pool;
|
pool_no = next_pool;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user