From 9d787d8d42eba8ff61842f4b49f8afcabf38bb78 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 23 May 2008 15:29:12 +0000 Subject: [PATCH] ITS#5489 move assert --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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--; } -- 2.39.5