Browse Source

select_pool does not switch back to the primary once lagging is disabled.

Conflicts:
	cgminer.c
Con Kolivas 13 years ago
parent
commit
6485c5d45c
1 changed files with 5 additions and 3 deletions
  1. 5 3
      cgminer.c

+ 5 - 3
cgminer.c

@@ -1933,9 +1933,11 @@ static inline struct pool *select_pool(bool lagging)
 
 
 	cp = current_pool();
 	cp = current_pool();
 
 
-	if (pool_strategy != POOL_LOADBALANCE && !lagging)
-		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) {