diff --git a/lib/manager.js b/lib/manager.js index 69133d86a2..64e1e13ee3 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -267,7 +267,6 @@ Manager.prototype.initStore = function () { this.connected = {}; this.open = {}; this.closed = {}; - this.closedA = []; this.rooms = {}; this.roomClients = {}; @@ -339,8 +338,6 @@ Manager.prototype.onOpen = function (id) { if (this.closed[id]) { var self = this; - this.closedA.splice(this.closedA.indexOf(id), 1); - this.store.unsubscribe('dispatch:' + id, function () { delete self.closed[id]; }); @@ -429,7 +426,6 @@ Manager.prototype.onClose = function (id) { } this.closed[id] = []; - this.closedA.push(id); var self = this; @@ -504,7 +500,6 @@ Manager.prototype.onDisconnect = function (id, local) { if (this.closed[id]) { delete this.closed[id]; - this.closedA.splice(this.closedA.indexOf(id), 1); } if (this.roomClients[id]) {