For previous, assert (writewaiter==0) in conn_destroy too.

This commit is contained in:
Howard Chu 2003-11-20 00:54:46 +00:00
parent 21796e671a
commit b179e05ea1

View file

@ -651,6 +651,7 @@ connection_destroy( Connection *c )
assert( c->c_struct_state != SLAP_C_UNUSED );
assert( c->c_conn_state != SLAP_C_INVALID );
assert( LDAP_STAILQ_EMPTY(&c->c_ops) );
assert( c->c_writewaiter == 0);
/* only for stats (print -1 as "%lu" may give unexpected results ;) */
connid = c->c_connid;
@ -708,7 +709,6 @@ connection_destroy( Connection *c )
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max );
}
c->c_writewaiter = 0;
c->c_conn_state = SLAP_C_INVALID;
c->c_struct_state = SLAP_C_UNUSED;