From e32dcd7190bcf25bb283befa84e3e4807c46bd6b Mon Sep 17 00:00:00 2001 From: elbandi Date: Wed, 7 May 2014 00:02:10 +0200 Subject: [PATCH] Mark pool as idle if stratum restart is failed --- sgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sgminer.c b/sgminer.c index 4d039933..51cd8a14 100644 --- a/sgminer.c +++ b/sgminer.c @@ -5430,6 +5430,7 @@ static void *stratum_rthread(void *userdata) if (!restart_stratum(pool)) { pool_died(pool); while (!restart_stratum(pool)) { + pool_failed(pool); if (pool->removed) goto out; cgsleep_ms(30000); @@ -5470,6 +5471,7 @@ static void *stratum_rthread(void *userdata) pool_died(pool); while (!restart_stratum(pool)) { + pool_failed(pool); if (pool->removed) goto out; cgsleep_ms(30000);