mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 12:41:02 +00:00
Check for pool_disabled in wait_lp_current
This commit is contained in:
parent
8c1366113c
commit
c7ffa58b26
@ -6122,7 +6122,9 @@ static void wait_lpcurrent(struct pool *pool)
|
|||||||
if (cnx_needed(pool))
|
if (cnx_needed(pool))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (pool != current_pool() && pool_strategy != POOL_LOADBALANCE && pool_strategy != POOL_BALANCE) {
|
while (pool->enabled == POOL_DISABLED ||
|
||||||
|
(pool != current_pool() && pool_strategy != POOL_LOADBALANCE &&
|
||||||
|
pool_strategy != POOL_BALANCE)) {
|
||||||
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