LP#1268619: websocket: do not disconnect ws() on osrf disconnect message
authorBill Erickson <berick@esilibrary.com>
Thu, 9 Jan 2014 20:00:03 +0000 (15:00 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 19 Aug 2014 22:50:47 +0000 (15:50 -0700)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

src/javascript/opensrf.js

index 813bef8..4d435a1 100644 (file)
@@ -305,11 +305,6 @@ OpenSRF.ClientSession.prototype.disconnect = function(args) {
 
     this.remote_id = null;
     this.state = OSRF_APP_SESSION_DISCONNECTED;
-
-    if (this.websocket) {
-        this.websocket.close();
-        delete this.websocket;
-    }
 };