Skip to content

Commit

Permalink
fix leaking message:id, disconnect:id socketio#1081 socketio#1064 soc…
Browse files Browse the repository at this point in the history
  • Loading branch information
shapeshed committed Nov 12, 2012
1 parent 7537e25 commit 6256f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,15 @@ Manager.prototype.onClientMessage = function (id, packet) {
* @api private
*/

Manager.prototype.onClientDisconnect = function (id, reason) {
Manager.prototype.onClientDisconnect = function (id, reason, local) {
for (var name in this.namespaces) {
if (this.namespaces.hasOwnProperty(name)) {
this.namespaces[name].handleDisconnect(id, reason, typeof this.roomClients[id] !== 'undefined' &&
typeof this.roomClients[id][name] !== 'undefined');
}
}

this.onDisconnect(id);
this.onDisconnect(id, local);
};

/**
Expand Down

0 comments on commit 6256f56

Please sign in to comment.