Skip to content
Browse files

quit betterer

  • Loading branch information...
1 parent 669e7ae commit 3031d249078fe17a81d743a8cd12f7703a957077 @substack substack committed Aug 29, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/service.js
View
6 lib/service.js
@@ -155,9 +155,11 @@ function Service (client, conn) {
self.quit = function () {
if (user.player) user.player.quit();
- if (user.name) delete users[user.name];
};
- conn.on('end', function () { self.quit() });
+ conn.on('end', function () {
+ self.quit();
+ if (user.name) delete users[user.name];
+ });
}

0 comments on commit 3031d24

Please sign in to comment.
Something went wrong with that request. Please try again.