From: Pierangelo Masarati Date: Thu, 1 Sep 2005 01:59:36 +0000 (+0000) Subject: address ITS#3925; please test X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~516 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6aa5b4f7755b0b13f2227776d579d8314efaaf23;p=openldap address ITS#3925; please test --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index a4196c59fd..d65d9c40b6 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -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);