]> git.sur5r.net Git - openldap/commitdiff
address ITS#3925; please test
authorPierangelo Masarati <ando@openldap.org>
Thu, 1 Sep 2005 01:59:36 +0000 (01:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 1 Sep 2005 01:59:36 +0000 (01:59 +0000)
libraries/libldap_r/tpool.c

index a4196c59fd49f2da0cae680d9e966290e53af0df..d65d9c40b6d3f2cdf00043b96b492f9869a3b737 100644 (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);