mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 14:13:18 +08:00
Revert blocking call when sending spectator frames
There are a lot of these requests, and we don't really care about
waiting on them to finish sending. This may have negatively affected
send performance for users with very high latency.
Reverts part of 0533249d11
.
Addresses concerns in https://github.com/ppy/osu/discussions/19429#discussioncomment-3276400.
This commit is contained in:
parent
45879f7836
commit
fd09155990
@ -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