1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 02:32:59 +08:00

Move re-schedule inside continuation

This commit is contained in:
Dean Herbert 2023-12-28 15:12:44 +09:00
parent 481a251786
commit 972234b1e5
No known key found for this signature in database

View File

@ -86,7 +86,6 @@ namespace osu.Game.Screens.Menu
Current.BindValueChanged(_ => loadNewImage(), true);
checkForUpdates();
Scheduler.AddDelayed(checkForUpdates, TimeSpan.FromMinutes(15).TotalMilliseconds, true);
}
private void checkForUpdates()
@ -103,6 +102,8 @@ namespace osu.Game.Screens.Menu
// the inner error will be logged by framework mechanisms anyway.
if (r.IsFaulted)
_ = r.Exception;
Scheduler.AddDelayed(checkForUpdates, TimeSpan.FromMinutes(15).TotalMilliseconds);
});
}