Skip to content

Commit

Permalink
Fix double restart call still existing
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 15, 2024
1 parent eea3ff8 commit 67791a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions osu.Game/Screens/Play/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,14 @@ public bool Restart(bool quickRestart = false)
// stopping here is to ensure music doesn't become audible after exiting back to PlayerLoader.
musicController.Stop();

RestartRequested?.Invoke(quickRestart);
if (RestartRequested != null)
{
skipExitTransition = quickRestart;
RestartRequested?.Invoke(quickRestart);
return true;
}

return PerformExit(skipTransition: quickRestart);
return PerformExit(quickRestart);
}

/// <summary>
Expand Down

0 comments on commit 67791a1

Please sign in to comment.