diff --git a/src/backend/core/services/lobby.py b/src/backend/core/services/lobby.py index 2ddaf80d..36f2fb35 100644 --- a/src/backend/core/services/lobby.py +++ b/src/backend/core/services/lobby.py @@ -221,6 +221,12 @@ class LobbyService: color=color, ) + try: + self.notify_participants(room_id=room_id) + except LobbyNotificationError: + # If room not created yet, there is no participants to notify + pass + cache_key = self._get_cache_key(room_id, participant_id) cache.set( cache_key, @@ -228,12 +234,6 @@ class LobbyService: timeout=settings.LOBBY_WAITING_TIMEOUT, ) - try: - self.notify_participants(room_id=room_id) - except LobbyNotificationError: - # If room not created yet, there is no participants to notify - pass - return participant def _get_participant(