1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Do not consider every call to stratum_resumed a pool recovery unless it was actually idle.

This commit is contained in:
Con Kolivas 2013-02-07 13:51:54 +11:00
parent 73b7d7b0c9
commit 3804850141

View File

@ -4639,9 +4639,10 @@ static void stratum_resumed(struct pool *pool)
{ {
if (!pool->stratum_notify) if (!pool->stratum_notify)
return; return;
applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no); if (pool_tclear(pool, &pool->idle)) {
pool_tclear(pool, &pool->idle); applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
pool_resus(pool); pool_resus(pool);
}
} }
/* One stratum thread per pool that has stratum waits on the socket checking /* One stratum thread per pool that has stratum waits on the socket checking