mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 09:42:17 +00:00
Do not consider every call to stratum_resumed a pool recovery unless it was actually idle.
This commit is contained in:
parent
73b7d7b0c9
commit
3804850141
@ -4639,10 +4639,11 @@ static void stratum_resumed(struct pool *pool)
|
||||
{
|
||||
if (!pool->stratum_notify)
|
||||
return;
|
||||
if (pool_tclear(pool, &pool->idle)) {
|
||||
applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
|
||||
pool_tclear(pool, &pool->idle);
|
||||
pool_resus(pool);
|
||||
}
|
||||
}
|
||||
|
||||
/* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user