summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.html b/index.html
index 068373e..405e6f8 100644
--- a/index.html
+++ b/index.html
@@ -66,7 +66,7 @@ function initConnect(){
socket.on("player_list_change",getPlayersList);
socket.on("game_create",function(game){
- if(currentGame){
+ if(currentGame&&gameState!=GS_FINISH){
socket.emit("leave_game",game.id);
return;
}