Browse Source

Merge commit '0e0093e' into bfgminer

Luke Dashjr 13 years ago
parent
commit
7a2d8c5293
1 changed files with 1 additions and 6 deletions
  1. 1 6
      miner.c

+ 1 - 6
miner.c

@@ -2952,8 +2952,6 @@ void switch_pools(struct pool *selected)
 	mutex_lock(&lp_lock);
 	pthread_cond_broadcast(&lp_cond);
 	mutex_unlock(&lp_lock);
-
-	queue_request(NULL, false);
 }
 
 static void discard_work(struct work *work)
@@ -4336,10 +4334,7 @@ static bool queue_request(struct thr_info *thr, bool needed)
 	if ((!needed || opt_fail_only) && (cp->staged + cp->queued >= maxq))
 		return true;
 
-	if (needed && !ts)
-		pool = select_pool(true);
-	else
-		pool = cp;
+	pool = select_pool(needed && !ts);
 	if (pool->staged + pool->queued >= maxq)
 		return true;