1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 04:09:53 +08:00

Merge pull request #18165 from smoogipoo/lookup-cache-unobserved

Prevent throwing exceptions on first run without internet
This commit is contained in:
Dean Herbert
2022-05-09 14:49:06 +09:00
committed by GitHub
Unverified
+11 -1
View File
@@ -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)