mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
In pool_resume don't touch the condvar if the pool is tearing down.
This commit is contained in:
parent
bdac543b3b
commit
6775e25ba3
@ -702,7 +702,8 @@ ldap_pvt_thread_pool_resume (
|
||||
|
||||
ldap_pvt_thread_mutex_lock(&pool->ltp_mutex);
|
||||
pool->ltp_pause = 0;
|
||||
ldap_pvt_thread_cond_broadcast(&pool->ltp_cond);
|
||||
if (pool->ltp_state == LDAP_INT_THREAD_POOL_RUNNING)
|
||||
ldap_pvt_thread_cond_broadcast(&pool->ltp_cond);
|
||||
ldap_pvt_thread_mutex_unlock(&pool->ltp_mutex);
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user