mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move check into callback
This commit is contained in:
@ -167,13 +167,13 @@ namespace osu.Game.Online.Spectator
|
||||
|
||||
public void EndPlaying()
|
||||
{
|
||||
if (!IsPlaying)
|
||||
return;
|
||||
|
||||
// This method is most commonly called via Dispose(), which is asynchronous.
|
||||
// Todo: This should not be a thing, but requires framework changes.
|
||||
Schedule(() =>
|
||||
{
|
||||
if (!IsPlaying)
|
||||
return;
|
||||
|
||||
IsPlaying = false;
|
||||
currentBeatmap = null;
|
||||
|
||||
|
Reference in New Issue
Block a user