Skip to content

Commit

Permalink
Another small bug fix around the client counter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmunro committed Aug 3, 2012
1 parent 8a8b44f commit 9892598
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/webchat/client.js
Expand Up @@ -64,8 +64,7 @@ function initSock(fn) {
updateClientList();
break;
case 'clientRemoved':
var i = clients.indexOf(recvd.client);
clients.splice(i, 1);
delete clients[recvd.client.id];
updateClientList();
break;
case 'clientList':
Expand Down

0 comments on commit 9892598

Please sign in to comment.