Fix game.ready state handling regression
This commit is contained in:
@@ -96,13 +96,7 @@ internal sealed class GameReadyHandler : GameHandlerBase, IMessageHandler
|
||||
}
|
||||
|
||||
if (session.Status != GameSessionStatus.Initializing)
|
||||
{
|
||||
// Session may already be transitioning/started on another client.
|
||||
// Reply gracefully so clients can recover instead of surfacing hard errors.
|
||||
await _gameDb.Database.CommitTransactionAsync(ct);
|
||||
return ServerMessage.Reply("game.ready.ack", message.Seq,
|
||||
new GameReadyResponse(session.Id, "AlreadyStarted"));
|
||||
}
|
||||
throw new GameException("SESSION_NOT_INITIALIZING");
|
||||
|
||||
// Mark this player ready.
|
||||
if (session.PlayerOneAccountId == accountId)
|
||||
|
||||
Reference in New Issue
Block a user