mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +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()
|
public void BeginPlaying()
|
||||||
{
|
{
|
||||||
if (!isConnected) return;
|
|
||||||
|
|
||||||
if (isPlaying)
|
if (isPlaying)
|
||||||
throw new InvalidOperationException($"Cannot invoke {nameof(BeginPlaying)} when already playing");
|
throw new InvalidOperationException($"Cannot invoke {nameof(BeginPlaying)} when already playing");
|
||||||
|
|
||||||
@ -179,6 +177,8 @@ namespace osu.Game.Online.Spectator
|
|||||||
{
|
{
|
||||||
Debug.Assert(isPlaying);
|
Debug.Assert(isPlaying);
|
||||||
|
|
||||||
|
if (!isConnected) return;
|
||||||
|
|
||||||
connection.SendAsync(nameof(ISpectatorServer.BeginPlaySession), currentState);
|
connection.SendAsync(nameof(ISpectatorServer.BeginPlaySession), currentState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user