diff --git a/knockoutwhist b/knockoutwhist index 10fa4ba..2d6b56c 160000 --- a/knockoutwhist +++ b/knockoutwhist @@ -1 +1 @@ -Subproject commit 10fa4badf09b2df0105581197d83a97555bbf6b1 +Subproject commit 2d6b56ccf18cbddb63437314e3774145ce2bca87 diff --git a/knockoutwhistweb/app/logic/game/GameLobby.scala b/knockoutwhistweb/app/logic/game/GameLobby.scala index 24b4588..dafa791 100644 --- a/knockoutwhistweb/app/logic/game/GameLobby.scala +++ b/knockoutwhistweb/app/logic/game/GameLobby.scala @@ -9,6 +9,7 @@ import de.knockoutwhist.events.player.PlayerEvent import de.knockoutwhist.player.Playertype.HUMAN import de.knockoutwhist.player.{AbstractPlayer, PlayerFactory} import de.knockoutwhist.rounds.{Match, Round, Trick} +import de.knockoutwhist.utils.DelayHandler import de.knockoutwhist.utils.events.{EventListener, SimpleEvent} import events.{KickEvent, LeftEvent, LobbyUpdateEvent, UserEvent} import exceptions.* @@ -33,6 +34,7 @@ class GameLobby private( private val users: mutable.Map[UUID, UserSession] = mutable.Map() logic.addListener(this) + logic.addListener(DelayHandler) logic.createSession() def addUser(user: User): UserSession = {