]> git.sur5r.net Git - openldap/commitdiff
sl_busy is used as a boolean so just set it, don't increment it
authorHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2011 17:19:25 +0000 (17:19 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2011 17:19:25 +0000 (17:19 +0000)
servers/slapd/daemon.c

index 2a7a48eaf8141039920435588567a09c7c193946..df6d0962d930b3fc7d3d92b97e472d9893c132fe 100644 (file)
@@ -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 );