]> git.sur5r.net Git - openldap/commitdiff
Update state to closing early.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 23 Apr 1999 20:34:09 +0000 (20:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 23 Apr 1999 20:34:09 +0000 (20:34 +0000)
servers/slapd/connection.c

index 5b6bd4df3d5aa9fc12e1fd12f4985053a697399d..df3390635794a6fb69c30687af5549d572a9ca7f 100644 (file)
@@ -331,9 +331,11 @@ void connection_closing( Connection *c )
                        "connection_closing: readying conn=%ld sd=%d for close.\n",
                        c->c_connid, c->c_sb.sb_sd, 0 );
 
+               /* update state to closing */
+               c->c_conn_state = SLAP_C_CLOSING;
+
                /* don't listen on this port anymore */
                slapd_clr_read( c->c_sb.sb_sd, 1 );
-               c->c_conn_state = SLAP_C_CLOSING;
 
                /* shutdown I/O -- not yet implemented */