Browse Source

Merge commit '8ed381f' into bfgminer

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

+ 6 - 4
miner.c

@@ -2137,9 +2137,11 @@ static inline struct pool *select_pool(bool lagging)
 	if (pool_strategy == POOL_BALANCE)
 	if (pool_strategy == POOL_BALANCE)
 		return select_balanced(cp);
 		return select_balanced(cp);
 
 
-	if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only))
-		pool = cp;
-	else
+	if (pool_strategy != POOL_LOADBALANCE && (!lagging || opt_fail_only)) {
+		if (cp->prio != 0)
+			switch_pools(NULL);
+		pool = current_pool();
+	} else
 		pool = NULL;
 		pool = NULL;
 
 
 	while (!pool) {
 	while (!pool) {
@@ -2603,7 +2605,7 @@ retry:
 		ret_work->queued = true;
 		ret_work->queued = true;
 	} else {
 	} else {
 
 
-		if (ts <= opt_queue)
+		if (!ts)
 			lagging = true;
 			lagging = true;
 		pool = ret_work->pool = select_pool(lagging);
 		pool = ret_work->pool = select_pool(lagging);