mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 02:25:29 +08:00
Fix race condition causing player to never restart
This commit is contained in:
@@ -249,6 +249,10 @@ namespace osu.Game.Screens.Play
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
|
||||
sampleRestart?.Play();
|
||||
|
||||
// if a restart has been requested, cancel any pending completion (user has shown intent to restart).
|
||||
onCompletionEvent = null;
|
||||
|
||||
ValidForResume = false;
|
||||
RestartRequested?.Invoke();
|
||||
this.Exit();
|
||||
|
||||
Reference in New Issue
Block a user