mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Fix spectator client not correctly reconnecting after shutdown
This commit is contained in:
parent
5b9be3e682
commit
8e7e1e6b51
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user