From ebf65a92ab652cfac55db7b723ff1565526008e7 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Wed, 15 May 2013 20:17:00 -0700 Subject: [PATCH] Leave room upon forfeiting --- js/client-battle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/client-battle.js b/js/client-battle.js index 09e24169c..deda15a30 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -889,6 +889,7 @@ }, submit: function(data) { this.room.send('/forfeit'); + app.removeRoom(this.room.id); this.close(); } });