mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Merge pull request #19451 from peppy/dont-wait-spectator-frames
Revert blocking call when sending spectator frames
This commit is contained in:
commit
bc685918b6
@ -80,7 +80,7 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
Debug.Assert(connection != null);
|
||||
|
||||
return connection.InvokeAsync(nameof(ISpectatorServer.SendFrameData), bundle);
|
||||
return connection.SendAsync(nameof(ISpectatorServer.SendFrameData), bundle);
|
||||
}
|
||||
|
||||
protected override Task EndPlayingInternal(SpectatorState state)
|
||||
|
@ -304,7 +304,7 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
SendFramesInternal(bundle).ContinueWith(t =>
|
||||
{
|
||||
// Handle exception outside of `Schedule` to ensure it doesn't go unovserved.
|
||||
// Handle exception outside of `Schedule` to ensure it doesn't go unobserved.
|
||||
bool wasSuccessful = t.Exception == null;
|
||||
|
||||
return Schedule(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user