[Opensrf-commits] r1535 - branches/rel_1_0/src/javascript
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 18 11:43:12 EST 2008
Author: erickson
Date: 2008-12-18 11:43:10 -0500 (Thu, 18 Dec 2008)
New Revision: 1535
Modified:
branches/rel_1_0/src/javascript/opensrf.js
Log:
clear remote ID on subsequent non-conntected requests and on disconnect
Modified: branches/rel_1_0/src/javascript/opensrf.js
===================================================================
--- branches/rel_1_0/src/javascript/opensrf.js 2008-12-18 14:16:12 UTC (rev 1534)
+++ branches/rel_1_0/src/javascript/opensrf.js 2008-12-18 16:43:10 UTC (rev 1535)
@@ -139,11 +139,15 @@
'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++)
More information about the opensrf-commits
mailing list