mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09: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;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user