mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Fix incorrect order of flag settings
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user