mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Ensure FailAnimation
is disposed synchronously to avoid test failures
This commit is contained in:
parent
a16ffd2976
commit
3d6602b8df
@ -947,7 +947,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
{
|
||||
screenSuspension?.Expire();
|
||||
screenSuspension?.RemoveAndDisposeImmediately();
|
||||
|
||||
fadeOut();
|
||||
base.OnSuspending(next);
|
||||
@ -955,7 +955,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
screenSuspension?.Expire();
|
||||
screenSuspension?.RemoveAndDisposeImmediately();
|
||||
failAnimation?.RemoveAndDisposeImmediately();
|
||||
|
||||
// if arriving here and the results screen preparation task hasn't run, it's safe to say the user has not completed the beatmap.
|
||||
if (prepareScoreForDisplayTask == null)
|
||||
|
Loading…
Reference in New Issue
Block a user