Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This patch will prevent some random memory leaking. #616

Merged
merged 1 commit into from Nov 2, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/manager.js
Expand Up @@ -267,7 +267,6 @@ Manager.prototype.initStore = function () {
this.connected = {};
this.open = {};
this.closed = {};
this.closedA = [];
this.rooms = {};
this.roomClients = {};

Expand Down Expand Up @@ -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];
});
Expand Down Expand Up @@ -429,7 +426,6 @@ Manager.prototype.onClose = function (id) {
}

this.closed[id] = [];
this.closedA.push(id);

var self = this;

Expand Down Expand Up @@ -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]) {
Expand Down