Skip to content

Commit

Permalink
Make sure to mark the client as non-open if the connection is closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 30, 2011
1 parent f302744 commit 8cbd154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ Manager.prototype.onLeave = function (id, room) {
*/

Manager.prototype.onClose = function (id) {
if (this.open[id]) {
delete this.open[id];
}

this.closed[id] = [];
this.closedA.push(id);

Expand Down

0 comments on commit 8cbd154

Please sign in to comment.