mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix screen exit potentially occuring during transition
This commit is contained in:
@ -45,7 +45,12 @@ namespace osu.Game.Screens.Play
|
||||
private void userBeganPlaying(int userId, SpectatorState state)
|
||||
{
|
||||
if (userId == score.ScoreInfo.UserID)
|
||||
Schedule(this.Exit);
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
if (this.IsCurrentScreen()) this.Exit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
|
Reference in New Issue
Block a user