fix(polling): Improve polling mechanism and delay handling (#60)

Reviewed-on: #60
This commit is contained in:
2025-11-20 10:51:39 +01:00
parent a58b2e03b1
commit 641c892981
7 changed files with 16 additions and 21 deletions

View File

@@ -59,7 +59,6 @@ class IngameController @Inject() (
case Some(g) =>
val results = Try {
returnInnerHTML(g, request.user)
}
if (results.isSuccess) {
Ok(views.html.main("In-Game - Knockout Whist")(results.get))
@@ -67,7 +66,7 @@ class IngameController @Inject() (
InternalServerError(results.failed.get.getMessage)
}
case None =>
NotFound("Game not found")
Redirect(routes.MainMenuController.mainMenu())
}
}
def startGame(gameId: String): Action[AnyContent] = authAction { implicit request: AuthenticatedRequest[AnyContent] =>