1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 11:47:18 +08:00

Better handle beatmap task cancel exception

This commit is contained in:
smoogipoo 2020-02-10 16:41:10 +09:00
parent 36414e9a53
commit a988a53d69

View File

@ -159,8 +159,16 @@ namespace osu.Game.Beatmaps
{
return LoadBeatmapAsync().Result;
}
catch (TaskCanceledException)
catch (AggregateException ae)
{
foreach (var e in ae.InnerExceptions)
{
if (e is TaskCanceledException)
continue;
Logger.Log(e.ToString());
}
return null;
}
}