From: erickson Date: Thu, 18 Dec 2008 16:43:10 +0000 (+0000) Subject: clear remote ID on subsequent non-conntected requests and on disconnect X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dcacec7cd4e57cc7240a4b20c0671c9bfac2eb75;p=OpenSRF.git clear remote ID on subsequent non-conntected requests and on disconnect git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_0@1535 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/opensrf.js b/src/javascript/opensrf.js index 43632c1..695e1fb 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++)