1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Update success bool to access Exception to stop exceptions from firing outwards

This commit is contained in:
Dean Herbert 2021-12-06 12:29:11 +09:00
parent 91aa38c4f6
commit 5ff452cc9a

View File

@ -458,7 +458,8 @@ namespace osu.Game.Online.Multiplayer
{
GetAPIBeatmap(playlistItem.BeatmapID).ContinueWith(b =>
{
bool success = b.IsCompletedSuccessfully;
// Should be called outside of the `Scheduler` logic (and specifically accessing `Exception`) to suppress an exception from firing outwards.
bool success = b.Exception == null;
Scheduler.Add(() =>
{