mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Perform pool_resus on all pools that are found alive with the test pool threads.
This commit is contained in:
parent
d932a36c46
commit
6c77e9a884
@ -6968,8 +6968,6 @@ static void *test_pool_thread(void *arg)
|
|||||||
struct pool *pool = (struct pool *)arg;
|
struct pool *pool = (struct pool *)arg;
|
||||||
|
|
||||||
if (pool_active(pool, false)) {
|
if (pool_active(pool, false)) {
|
||||||
bool resus = false;
|
|
||||||
|
|
||||||
pool_tset(pool, &pool->lagging);
|
pool_tset(pool, &pool->lagging);
|
||||||
pool_tclear(pool, &pool->idle);
|
pool_tclear(pool, &pool->idle);
|
||||||
|
|
||||||
@ -6979,11 +6977,9 @@ static void *test_pool_thread(void *arg)
|
|||||||
if (pool->pool_no != 0)
|
if (pool->pool_no != 0)
|
||||||
applog(LOG_NOTICE, "Switching to pool %d %s - first alive pool", pool->pool_no, pool->rpc_url);
|
applog(LOG_NOTICE, "Switching to pool %d %s - first alive pool", pool->pool_no, pool->rpc_url);
|
||||||
pools_active = true;
|
pools_active = true;
|
||||||
} else
|
}
|
||||||
resus = true;
|
|
||||||
mutex_unlock(&control_lock);
|
mutex_unlock(&control_lock);
|
||||||
if (resus)
|
pool_resus(pool);
|
||||||
pool_resus(pool);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user