Skip to content

Commit

Permalink
Merge pull request socketio#634 from christopherobin/master
Browse files Browse the repository at this point in the history
Fixing issue socketio#432
  • Loading branch information
rauchg committed Nov 16, 2011
2 parents dfb8521 + f4b434a commit db8cf76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ Manager.prototype.onClientMessage = function (id, packet) {

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

this.onDisconnect(id);
Expand Down

0 comments on commit db8cf76

Please sign in to comment.