Commit ceec3f83c3a5564bf8df879cc4ad638b81d5662f

Con Kolivas 2012-06-14T20:36:17

Check for strategy being changed to load balance when enabling LPs.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 35e133d..9496a5e 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4099,7 +4099,7 @@ static void wait_lpcurrent(struct pool *pool)
 	if (pool->enabled == POOL_REJECTING || pool_strategy == POOL_LOADBALANCE)
 		return;
 
-	while (pool != current_pool()) {
+	while (pool != current_pool() && pool_strategy != POOL_LOADBALANCE) {
 		mutex_lock(&lp_lock);
 		pthread_cond_wait(&lp_cond, &lp_lock);
 		mutex_unlock(&lp_lock);