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:
parent
36414e9a53
commit
a988a53d69
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user