mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Perform actions after server reconnection
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user