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:
parent
481a251786
commit
972234b1e5
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user