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; 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; return null;
} }
} }