Browse Source

Merge commit 'c5d9f3a' into cg_merges_20121210

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
7f8359621c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      miner.c

+ 1 - 2
miner.c

@@ -8083,7 +8083,7 @@ retry:
 			push_curl_entry(ce, pool);
 			push_curl_entry(ce, pool);
 			++pool->seq_getfails;
 			++pool->seq_getfails;
 			pool_died(pool);
 			pool_died(pool);
-			next_pool = select_pool(true);
+			next_pool = select_pool(!opt_fail_only);
 			if (pool == next_pool) {
 			if (pool == next_pool) {
 				applog(LOG_DEBUG, "Pool %d json_rpc_call failed on get work, retrying in 5s", pool->pool_no);
 				applog(LOG_DEBUG, "Pool %d json_rpc_call failed on get work, retrying in 5s", pool->pool_no);
 				sleep(5);
 				sleep(5);
@@ -8105,4 +8105,3 @@ retry:
 
 
 	return 0;
 	return 0;
 }
 }
-