address ITS#3925; please test

This commit is contained in:
Pierangelo Masarati 2005-09-01 01:59:36 +00:00
parent fe4b006e17
commit 6aa5b4f775

View File

@ -543,7 +543,7 @@ ldap_pvt_thread_pool_pause (
ldap_pvt_thread_mutex_lock(&pool->ltp_mutex);
/* If someone else has already requested a pause, we have to wait */
if (pool->ltp_state == LDAP_INT_THREAD_POOL_PAUSING) {
while (pool->ltp_state == LDAP_INT_THREAD_POOL_PAUSING) {
pool->ltp_pending_count++;
pool->ltp_active_count--;
ldap_pvt_thread_cond_wait(&pool->ltp_cond, &pool->ltp_mutex);