mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 04:13:11 +08:00
Merge pull request #4809 from peppy/fix-restart-race-condition
Fix race condition causing player to never restart
This commit is contained in:
commit
c7d4b2d138
@ -249,6 +249,10 @@ namespace osu.Game.Screens.Play
|
|||||||
if (!this.IsCurrentScreen()) return;
|
if (!this.IsCurrentScreen()) return;
|
||||||
|
|
||||||
sampleRestart?.Play();
|
sampleRestart?.Play();
|
||||||
|
|
||||||
|
// if a restart has been requested, cancel any pending completion (user has shown intent to restart).
|
||||||
|
onCompletionEvent = null;
|
||||||
|
|
||||||
ValidForResume = false;
|
ValidForResume = false;
|
||||||
RestartRequested?.Invoke();
|
RestartRequested?.Invoke();
|
||||||
this.Exit();
|
this.Exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user