mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Rotate pools on all failures to set a pool in select_pool.
This commit is contained in:
parent
7c19984fd6
commit
ea7b2a7da3
@ -2843,13 +2843,11 @@ static inline struct pool *select_pool(bool lagging)
|
||||
if (pool->quota_used++ >= pool->quota) {
|
||||
pool->quota_used = 0;
|
||||
pool = NULL;
|
||||
if (++rotating_pool >= total_pools)
|
||||
rotating_pool = 0;
|
||||
continue;
|
||||
}
|
||||
if (!pool_unworkable(pool))
|
||||
} else if (!pool_unworkable(pool))
|
||||
break;
|
||||
pool = NULL;
|
||||
if (++rotating_pool >= total_pools)
|
||||
rotating_pool = 0;
|
||||
}
|
||||
|
||||
/* If there are no alive pools with quota, choose according to
|
||||
|
Loading…
x
Reference in New Issue
Block a user