Browse Source

Bugfix: Always let watchpool thread handle dead pool recovery (including for stratum-only pools)

Luke Dashjr 13 years ago
parent
commit
0f36918f59
1 changed files with 2 additions and 15 deletions
  1. 2 15
      miner.c

+ 2 - 15
miner.c

@@ -5491,22 +5491,9 @@ static void *stratum_thread(void *userdata)
 			if (initiate_stratum(pool) && auth_stratum(pool))
 				continue;
 
-			if (pool->rpc_url[0] != 's') {
-				shutdown_stratum(pool);
-				pool_active(pool, false);
-				break;
-			}
-
+			shutdown_stratum(pool);
 			pool_died(pool);
-			while (!initiate_stratum(pool) || !auth_stratum(pool)) {
-				if (pool->removed)
-					goto out;
-				sleep(30);
-			}
-			applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
-			pool_tclear(pool, &pool->idle);
-			pool_resus(pool);
-			continue;
+			break;
 		}
 
 		if (!parse_method(pool, s) && !parse_stratum_response(pool, s))