Cover all non-APIAccess APIRequest calls with exception handling

This commit is contained in:
Dean Herbert
2019-10-31 15:04:13 +09:00
parent 5b5703544b
commit 0cd912fcd3
4 changed files with 60 additions and 17 deletions

View File

@ -44,7 +44,17 @@ namespace osu.Game.Overlays.Changelog
req.Failure += _ => complete = true;
// This is done on a separate thread to support cancellation below
Task.Run(() => req.Perform(api));
Task.Run(() =>
{
try
{
req.Perform(api);
}
catch
{
complete = true;
}
});
while (!complete)
{