Browse Source

Merge branch 'bugfix_1getwork' into bfgminer

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

+ 3 - 0
miner.c

@@ -4376,11 +4376,14 @@ retry:
 
 	applog(LOG_DEBUG, "Popping work from get queue to get work");
 
+keepwaiting:
 	/* wait for 1st response, or get cached response */
 	work_heap = hash_pop(&abstime);
 	if (unlikely(!work_heap)) {
 		/* Attempt to switch pools if this one times out */
 		pool_died(pool);
+		if (pool == current_pool())
+			goto keepwaiting;
 		goto retry;
 	}