Skip to content

Commit 2bb60ac

Browse files
committed
Merge pull request socketio#616 from thekiur/master
This patch will prevent some random memory leaking.
2 parents e20777d + 9e92075 commit 2bb60ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/manager.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ Manager.prototype.initStore = function () {
267267
this.connected = {};
268268
this.open = {};
269269
this.closed = {};
270-
this.closedA = [];
271270
this.rooms = {};
272271
this.roomClients = {};
273272

@@ -339,8 +338,6 @@ Manager.prototype.onOpen = function (id) {
339338
if (this.closed[id]) {
340339
var self = this;
341340

342-
this.closedA.splice(this.closedA.indexOf(id), 1);
343-
344341
this.store.unsubscribe('dispatch:' + id, function () {
345342
delete self.closed[id];
346343
});
@@ -429,7 +426,6 @@ Manager.prototype.onClose = function (id) {
429426
}
430427

431428
this.closed[id] = [];
432-
this.closedA.push(id);
433429

434430
var self = this;
435431

@@ -504,7 +500,6 @@ Manager.prototype.onDisconnect = function (id, local) {
504500

505501
if (this.closed[id]) {
506502
delete this.closed[id];
507-
this.closedA.splice(this.closedA.indexOf(id), 1);
508503
}
509504

510505
if (this.roomClients[id]) {

0 commit comments

Comments
 (0)