From 0ae659ad87c64bef938f729e87573ff3ce04bd28 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Mar 2011 17:19:25 +0000 Subject: [PATCH] sl_busy is used as a boolean so just set it, don't increment it --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 2a7a48eaf8..df6d0962d9 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2098,7 +2098,7 @@ slap_listener_activate( Debug( LDAP_DEBUG_TRACE, "slap_listener_activate(%d): %s\n", sl->sl_sd, sl->sl_busy ? "busy" : "", 0 ); - sl->sl_busy++; + sl->sl_busy = 1; rc = ldap_pvt_thread_pool_submit( &connection_pool, slap_listener_thread, (void *) sl ); -- 2.39.5