From 5185929652921bdddc9f125404a83c322910c246 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 25 Feb 2005 17:35:22 +0000 Subject: [PATCH] complete is a method git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@116 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf_msg_stack.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/javascript/opensrf_msg_stack.js b/src/javascript/opensrf_msg_stack.js index 51d5fd8..a658439 100644 --- a/src/javascript/opensrf_msg_stack.js +++ b/src/javascript/opensrf_msg_stack.js @@ -154,8 +154,10 @@ Message.handler = function( session, msg ) { case oilsResponse.STATUS_COMPLETE + "": { var req = session.get_request(tt); - if( req ) { req.set_complete(); } - new Logger().debug( " * Request completed: " + tt, Logger.INFO ); + if( req ) { + req.set_complete(); + new Logger().debug( " * Request completed: " + tt, Logger.INFO ); + } return; } @@ -183,7 +185,7 @@ Message.reset_session = function( session, thread_trace, message ) { session.set_state( AppSession.DISCONNECTED ); session.reset_remote(); var req = session.get_request( thread_trace ); - if( req && !req.complete ) { session.push_resend( req ); } + if( req && !req.complete() ) { session.push_resend( req ); } new Logger().debug( " * " + message + " : " + thread_trace, Logger.INFO ); } -- 2.11.0