1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Check a stratum pool hasn't gone dead while being a backup pool and missed having its idle flag cleared.

This commit is contained in:
Con Kolivas 2012-12-17 12:27:50 +11:00
parent 85e6c6d55e
commit 9ef73d9300

View File

@ -4602,6 +4602,13 @@ static void *stratum_thread(void *userdata)
continue; continue;
} }
/* Check this pool hasn't died while being a backup pool and
* has not had its idle flag cleared */
if (pool_tclear(pool, &pool->idle)) {
applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
pool_resus(pool);
}
if (!parse_method(pool, s) && !parse_stratum_response(pool, s)) if (!parse_method(pool, s) && !parse_stratum_response(pool, s))
applog(LOG_INFO, "Unknown stratum msg: %s", s); applog(LOG_INFO, "Unknown stratum msg: %s", s);
free(s); free(s);