1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 03:45:09 +08:00

Fix spectator client not correctly reconnecting after shutdown

This commit is contained in:
Dean Herbert
2022-07-17 05:20:05 +09:00
Unverified
parent 5b9be3e682
commit 8e7e1e6b51
2 changed files with 3 additions and 1 deletions
@@ -80,6 +80,7 @@ namespace osu.Game.Online.Multiplayer
try
{
// Importantly, use Invoke rather than Send to capture exceptions.
return await connection.InvokeAsync<MultiplayerRoom>(nameof(IMultiplayerServer.JoinRoomWithPassword), roomId, password ?? string.Empty);
}
catch (HubException exception)
@@ -56,7 +56,8 @@ namespace osu.Game.Online.Spectator
try
{
await connection.SendAsync(nameof(ISpectatorServer.BeginPlaySession), state);
// Importantly, use Invoke rather than Send to capture exceptions.
await connection.InvokeAsync(nameof(ISpectatorServer.BeginPlaySession), state);
}
catch (HubException exception)
{