From c110036f752190a9abec65aa777d42805e92214e Mon Sep 17 00:00:00 2001 From: Daniel Shaw Date: Sat, 26 Nov 2011 12:14:39 -0800 Subject: [PATCH] Handle leaked dispatch:[id] subscription. --- lib/manager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/manager.js b/lib/manager.js index 909eca4a9c..b77b9d6428 100644 --- a/lib/manager.js +++ b/lib/manager.js @@ -474,6 +474,7 @@ Manager.prototype.onClientDisconnect = function (id, reason, local) { typeof this.roomClients[id][name] !== 'undefined'); } + if (local) this.store.publish('disconnect', id); this.onDisconnect(id, local); };