Skip to content

Commit 67791a1

Browse files
committed
Fix double restart call still existing
1 parent eea3ff8 commit 67791a1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

osu.Game/Screens/Play/Player.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,14 @@ public bool Restart(bool quickRestart = false)
719719
// stopping here is to ensure music doesn't become audible after exiting back to PlayerLoader.
720720
musicController.Stop();
721721

722-
RestartRequested?.Invoke(quickRestart);
722+
if (RestartRequested != null)
723+
{
724+
skipExitTransition = quickRestart;
725+
RestartRequested?.Invoke(quickRestart);
726+
return true;
727+
}
723728

724-
return PerformExit(skipTransition: quickRestart);
729+
return PerformExit(quickRestart);
725730
}
726731

727732
/// <summary>

0 commit comments

Comments
 (0)