Skip to content
Snippets Groups Projects
Commit 6775e25b authored by Howard Chu's avatar Howard Chu
Browse files

In pool_resume don't touch the condvar if the pool is tearing down.

parent bdac543b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment