Merge pull request #19189 from peppy/peform-actions-after-reconnect

Fix creating multiplayer game during server migration not joining new room correctly
This commit is contained in:
Dan Balasescu
2022-07-19 14:46:29 +09:00
committed by GitHub
6 changed files with 27 additions and 18 deletions

View File

@ -61,7 +61,14 @@ namespace osu.Game.Online.Spectator
catch (HubException exception)
{
if (exception.GetHubExceptionMessage() == HubClientConnector.SERVER_SHUTDOWN_MESSAGE)
connector?.Reconnect();
{
Debug.Assert(connector != null);
await connector.Reconnect();
await BeginPlayingInternal(state);
return;
}
throw;
}
}