Browse Source

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.
nfactor-troky
Noel Maersk 11 years ago
parent
commit
dab1d35efd
  1. 2
      sgminer.c

2
sgminer.c

@ -5260,6 +5260,8 @@ static void *stratum_rthread(void *userdata)
* indefinitely or just bring it up when we switch to this * indefinitely or just bring it up when we switch to this
* pool */ * pool */
if (!sock_full(pool) && !cnx_needed(pool)) { if (!sock_full(pool) && !cnx_needed(pool)) {
applog(LOG_INFO, "Suspending stratum on %s",
pool->poolname);
suspend_stratum(pool); suspend_stratum(pool);
clear_stratum_shares(pool); clear_stratum_shares(pool);
clear_pool_work(pool); clear_pool_work(pool);

Loading…
Cancel
Save