1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Add inline comment explaining the retry loop

This commit is contained in:
Dean Herbert 2021-02-23 13:23:32 +09:00
parent 5493c55da7
commit 6a5c6febc5

View File

@ -434,6 +434,8 @@ namespace osu.Game.Screens.Play
{
bool paused = Pause();
// if the initial pause could not be satisfied, the pause cooldown may be active.
// reschedule the pause attempt until it can be achieved.
if (!paused)
Scheduler.AddOnce(updatePauseOnFocusLostState);
}