Merge pull request #1082 from shapeshed/master

Fix leaking message:id, disconnect:id
This commit is contained in:
Guillermo Rauch
2012-11-27 20:45:46 -08:00

View File

@@ -510,7 +510,7 @@ 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' &&
@@ -518,7 +518,7 @@ Manager.prototype.onClientDisconnect = function (id, reason) {
}
}
this.onDisconnect(id);
this.onDisconnect(id, local);
};
/**