mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
log: add LOG_INFO message about suspended stratum to stratum_rthread().
Also a minor style/syntax fix while searching for why pools don't restart if gone "dead". A pool is considered "dead" if pool->idle is true.
This commit is contained in:
parent
be4305e4f6
commit
dab1d35efd
@ -4498,7 +4498,7 @@ updated:
|
||||
disp_name = pool->rpc_url;
|
||||
}
|
||||
wlogprint("%s Quota %d Prio %d: '%s' User:%s\n",
|
||||
pool->idle? "Dead" : "Alive",
|
||||
pool->idle ? "Dead" : "Alive",
|
||||
pool->quota,
|
||||
pool->prio,
|
||||
disp_name, pool->rpc_user);
|
||||
@ -5260,6 +5260,8 @@ static void *stratum_rthread(void *userdata)
|
||||
* indefinitely or just bring it up when we switch to this
|
||||
* pool */
|
||||
if (!sock_full(pool) && !cnx_needed(pool)) {
|
||||
applog(LOG_INFO, "Suspending stratum on %s",
|
||||
pool->poolname);
|
||||
suspend_stratum(pool);
|
||||
clear_stratum_shares(pool);
|
||||
clear_pool_work(pool);
|
||||
|
Loading…
Reference in New Issue
Block a user