[Opensrf-commits] r1534 - trunk/src/javascript

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Dec 18 09:16:13 EST 2008


Author: erickson
Date: 2008-12-18 09:16:12 -0500 (Thu, 18 Dec 2008)
New Revision: 1534

Modified:
   trunk/src/javascript/opensrf.js
Log:
clear remote ID on subsequent non-conntected requests and on disconnect

Modified: trunk/src/javascript/opensrf.js
===================================================================
--- trunk/src/javascript/opensrf.js	2008-12-18 04:15:35 UTC (rev 1533)
+++ trunk/src/javascript/opensrf.js	2008-12-18 14:16:12 UTC (rev 1534)
@@ -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