From 6aa5b4f7755b0b13f2227776d579d8314efaaf23 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 1 Sep 2005 01:59:36 +0000 Subject: [PATCH] address ITS#3925; please test --- libraries/libldap_r/tpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5