mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Merge pull request #18165 from smoogipoo/lookup-cache-unobserved
Prevent throwing exceptions on first run without internet
This commit is contained in:
commit
36cda34561
@ -153,7 +153,17 @@ namespace osu.Game.Beatmaps
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Task.Run(() => cacheDownloadRequest.PerformAsync());
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await cacheDownloadRequest.PerformAsync();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// Prevent throwing unobserved exceptions, as they will be logged from the network request to the log file anyway.
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool checkLocalCache(BeatmapSetInfo set, BeatmapInfo beatmapInfo)
|
private bool checkLocalCache(BeatmapSetInfo set, BeatmapInfo beatmapInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user