mirror of https://github.com/ppy/osu
Fix incorrect order of flag settings
This commit is contained in:
parent
9f2f8d8cc7
commit
54d666604b
|
@ -194,12 +194,13 @@ public void SendFrames(FrameDataBundle data)
|
|||
|
||||
public void EndPlaying()
|
||||
{
|
||||
if (!isConnected) return;
|
||||
|
||||
if (!isPlaying)
|
||||
throw new InvalidOperationException($"Cannot invoke {nameof(EndPlaying)} when not playing");
|
||||
|
||||
isPlaying = false;
|
||||
|
||||
if (!isConnected) return;
|
||||
|
||||
connection.SendAsync(nameof(ISpectatorServer.EndPlaySession), currentState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue