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,10 +4639,11 @@ static void stratum_resumed(struct pool *pool)
{ {
if (!pool->stratum_notify) if (!pool->stratum_notify)
return; return;
if (pool_tclear(pool, &pool->idle)) {
applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no); applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
pool_tclear(pool, &pool->idle);
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
* for new messages and for the integrity of the socket connection. We reset * for new messages and for the integrity of the socket connection. We reset