Perform actions after server reconnection

This commit is contained in:
Dean Herbert
2022-07-17 04:35:41 +09:00
parent 8e7e1e6b51
commit da7edd5d49
4 changed files with 23 additions and 9 deletions

View File

@ -62,7 +62,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;
}
}