From 3f1366c12231d04eb831200cf44cc27860b9e4d4 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 18 Dec 2008 14:16:12 +0000 Subject: [PATCH 1/1] clear remote ID on subsequent non-conntected requests and on disconnect git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1534 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index 07aacdd..315c080 100644 --- a/src/javascript/opensrf.js +++ b/src/javascript/opensrf.js @@ -139,11 +139,15 @@ OpenSRF.ClientSession.prototype.disconnect = function(args) { 'type' : OSRF_MESSAGE_TYPE_DISCONNECT, }) ); + this.remote_id = null; } OpenSRF.ClientSession.prototype.request = function(args) { - + + if(this.state != OSRF_APP_SESSION_CONNECTED) + this.remote_id = null; + if(typeof args == 'string') { params = []; for(var i = 1; i < arguments.length; i++) -- 2.43.2