mirror of
https://github.com/osukey/osukey.git
synced 2025-05-28 17:07:35 +09:00
Fix initial play state not being kept locally if not connected
This commit is contained in:
parent
04f46bc1f8
commit
147d502da1
@ -161,8 +161,6 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
public void BeginPlaying()
|
||||
{
|
||||
if (!isConnected) return;
|
||||
|
||||
if (isPlaying)
|
||||
throw new InvalidOperationException($"Cannot invoke {nameof(BeginPlaying)} when already playing");
|
||||
|
||||
@ -179,6 +177,8 @@ namespace osu.Game.Online.Spectator
|
||||
{
|
||||
Debug.Assert(isPlaying);
|
||||
|
||||
if (!isConnected) return;
|
||||
|
||||
connection.SendAsync(nameof(ISpectatorServer.BeginPlaySession), currentState);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user