diff --git a/knockoutwhistfrontend b/knockoutwhistfrontend index 17c0357..30798ce 160000 --- a/knockoutwhistfrontend +++ b/knockoutwhistfrontend @@ -1 +1 @@ -Subproject commit 17c035771731cdaaa8c196a4dfd86996e41d1070 +Subproject commit 30798ce7235ed1dc63cbe01021ab99269541ed40 diff --git a/knockoutwhistweb/app/model/sessions/UserSession.scala b/knockoutwhistweb/app/model/sessions/UserSession.scala index 84f99fc..aa04bc5 100644 --- a/knockoutwhistweb/app/model/sessions/UserSession.scala +++ b/knockoutwhistweb/app/model/sessions/UserSession.scala @@ -74,6 +74,10 @@ class UserSession(val user: User, val host: Boolean, val gameLobby: GameLobby) e } case "ReturnToLobby" => gameLobby.returnToLobby(this) + case "LeaveGame" => + gameLobby.leaveGame(user.id, false) + case _ => + println("Unknown event type: " + eventType + " with data: " + data) } }