From 6256f569b3a0343eacdec7ecea3de247eb64e49b Mon Sep 17 00:00:00 2001 From: George Ornbo Date: Mon, 12 Nov 2012 13:11:23 +0000 Subject: [PATCH] fix leaking message:id, disconnect:id #1081 #1064 #862 --- lib/manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/manager.js b/lib/manager.js index 6c12a52f14..a50808ec09 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -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); }; /**