mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 06:52:56 +08:00
Merge remote-tracking branch 'upstream/master' into overlay-headers-update-three
This commit is contained in:
commit
7d79edf335
@ -158,7 +158,8 @@ namespace osu.Game.Overlays
|
||||
|
||||
private Task initialFetchTask;
|
||||
|
||||
private void performAfterFetch(Action action) => fetchListing()?.ContinueWith(_ => Schedule(action));
|
||||
private void performAfterFetch(Action action) => fetchListing()?.ContinueWith(_ =>
|
||||
Schedule(action), TaskContinuationOptions.OnlyOnRanToCompletion);
|
||||
|
||||
private Task fetchListing()
|
||||
{
|
||||
@ -185,10 +186,10 @@ namespace osu.Game.Overlays
|
||||
tcs.SetResult(true);
|
||||
});
|
||||
|
||||
req.Failure += _ =>
|
||||
req.Failure += e =>
|
||||
{
|
||||
initialFetchTask = null;
|
||||
tcs.SetResult(false);
|
||||
tcs.SetException(e);
|
||||
};
|
||||
|
||||
await API.PerformAsync(req);
|
||||
|
Loading…
Reference in New Issue
Block a user