diff --git a/MyOwnGame.Backend/Services/SessionService.cs b/MyOwnGame.Backend/Services/SessionService.cs index 2841184..472626b 100644 --- a/MyOwnGame.Backend/Services/SessionService.cs +++ b/MyOwnGame.Backend/Services/SessionService.cs @@ -216,6 +216,15 @@ public async Task ChangeRound(int roundPosition, string connectionId) throw new Exception("Ошибка при смене раунда"); } + var session = _sessionsManager.GetSessionById(player.SessionId); + + if (session is null) + { + throw new Exception("Не найдена сессия"); + } + + session.ChangeStateToTable(); + await _callbackService.RoundChanged(player.SessionId, roundInfo.RoundInfo); await _callbackService.ChangeSelectQuestionPlayer(player.SessionId, roundInfo.QuestionPlayer);