mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 19:23:21 +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);
|
Current.BindValueChanged(_ => loadNewImage(), true);
|
||||||
|
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
Scheduler.AddDelayed(checkForUpdates, TimeSpan.FromMinutes(15).TotalMilliseconds, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkForUpdates()
|
private void checkForUpdates()
|
||||||
@ -103,6 +102,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
// the inner error will be logged by framework mechanisms anyway.
|
// the inner error will be logged by framework mechanisms anyway.
|
||||||
if (r.IsFaulted)
|
if (r.IsFaulted)
|
||||||
_ = r.Exception;
|
_ = r.Exception;
|
||||||
|
|
||||||
|
Scheduler.AddDelayed(checkForUpdates, TimeSpan.FromMinutes(15).TotalMilliseconds);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user