mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-08 03:00:20 -04:00
Merge pull request #1082 from shapeshed/master
Fix leaking message:id, disconnect:id
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user