1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools.

This commit is contained in:
Con Kolivas 2013-03-07 16:49:16 +11:00
parent e501db143d
commit 370e8fc862

View File

@ -6930,10 +6930,10 @@ static void *test_pool_thread(void *arg)
if (pool_active(pool, false)) {
pool_tset(pool, &pool->lagging);
pool_tclear(pool, &pool->idle);
applog(LOG_INFO, "Pool %d %s active", pool->pool_no, pool->rpc_url);
mutex_lock(&control_lock);
if (!pools_active) {
pool_tclear(pool, &pool->idle);
currentpool = pool;
if (pool->pool_no != 0)
applog(LOG_NOTICE, "Switching to pool %d %s - first alive pool", pool->pool_no, pool->rpc_url);