fixed logic error in disconnect
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 24 May 2006 13:57:04 +0000 (13:57 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 24 May 2006 13:57:04 +0000 (13:57 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@728 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_app_session.c

index a92eee0..b65c941 100644 (file)
@@ -468,8 +468,8 @@ int osrf_app_session_disconnect( osrf_app_session* session){
        osrfLogDebug(OSRF_LOG_MARK,  "AppSession disconnecting from %s", session->remote_id );
 
        osrf_message* dis_msg = osrf_message_init( DISCONNECT, session->thread_trace, 1 );
-       session->state = OSRF_SESSION_DISCONNECTED;
        _osrf_app_session_send( session, dis_msg );
+       session->state = OSRF_SESSION_DISCONNECTED;
 
        osrf_message_free( dis_msg );
        osrf_app_session_reset_remote( session );