mirror of
https://github.com/ppy/osu
synced 2025-01-18 12:00:58 +00:00
Fix incorrect order of flag settings
This commit is contained in:
parent
9f2f8d8cc7
commit
54d666604b
@ -194,12 +194,13 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
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
Block a user