From: erickson Date: Thu, 18 Dec 2008 14:16:12 +0000 (+0000) Subject: clear remote ID on subsequent non-conntected requests and on disconnect X-Git-Tag: osrf_rel_2_0_1~493 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3f1366c12231d04eb831200cf44cc27860b9e4d4;p=OpenSRF.git 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 --- 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++)