mirror of https://github.com/ppy/osu
Fix race condition causing player to never restart
This commit is contained in:
parent
20316cc0ac
commit
359e5b71a5
|
@ -249,6 +249,10 @@ public void Restart()
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue