From: Howard Chu Date: Fri, 23 May 2008 15:29:12 +0000 (+0000) Subject: ITS#5489 move assert X-Git-Tag: LOCKER_IDS~152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d787d8d42eba8ff61842f4b49f8afcabf38bb78;p=openldap ITS#5489 move assert --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 3fe81157b7..45bd7d3fe8 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -928,9 +928,9 @@ slapd_clr_write( ber_socket_t s, int wake ) { ldap_pvt_thread_mutex_lock( &slap_daemon.sd_mutex ); - assert( SLAP_SOCK_IS_ACTIVE( s )); - if ( SLAP_SOCK_IS_WRITE( s )) { + assert( SLAP_SOCK_IS_ACTIVE( s )); + SLAP_SOCK_CLR_WRITE( s ); slap_daemon.sd_nwriters--; }