Browse Source

Bugfix: Recheck current_pool after calling pool_died

Luke Dashjr 11 years ago
parent
commit
57df860c6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -4395,9 +4395,9 @@ static inline struct pool *select_pool(bool lagging)
 	bool avail = false;
 	bool avail = false;
 	int tested, i;
 	int tested, i;
 
 
+retry:
 	cp = current_pool();
 	cp = current_pool();
 
 
-retry:
 	if (pool_strategy == POOL_BALANCE) {
 	if (pool_strategy == POOL_BALANCE) {
 		pool = select_balanced(cp);
 		pool = select_balanced(cp);
 		goto out;
 		goto out;