mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 05:41:55 +00:00
Check for strategy being changed to load balance when enabling LPs.
This commit is contained in:
parent
30bb3c62a6
commit
ceec3f83c3
@ -4099,7 +4099,7 @@ static void wait_lpcurrent(struct pool *pool)
|
|||||||
if (pool->enabled == POOL_REJECTING || pool_strategy == POOL_LOADBALANCE)
|
if (pool->enabled == POOL_REJECTING || pool_strategy == POOL_LOADBALANCE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (pool != current_pool()) {
|
while (pool != current_pool() && pool_strategy != POOL_LOADBALANCE) {
|
||||||
mutex_lock(&lp_lock);
|
mutex_lock(&lp_lock);
|
||||||
pthread_cond_wait(&lp_cond, &lp_lock);
|
pthread_cond_wait(&lp_cond, &lp_lock);
|
||||||
mutex_unlock(&lp_lock);
|
mutex_unlock(&lp_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user