Browse Source

Merge branch 'bugfix_stratum_failover2' into bfgminer

Luke Dashjr 13 years ago
parent
commit
1f594397df
1 changed files with 3 additions and 5 deletions
  1. 3 5
      miner.c

+ 3 - 5
miner.c

@@ -8024,11 +8024,9 @@ retry:
 			while (!pool->stratum_active) {
 				struct pool *altpool = select_pool(true);
 
-				sleep(5);
-				if (altpool != pool) {
-					pool = altpool;
-					goto retry;
-				}
+				if (altpool == pool && pool->has_stratum)
+					sleep(5);
+				goto retry;
 			}
 			pool->last_work_time = time(NULL);
 			gen_stratum_work(pool, work);