mirror of
https://github.com/ppy/osu.git
synced 2026-05-17 12:45:32 +08:00
Update success bool to access Exception to stop exceptions from firing outwards
This commit is contained in:
@@ -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(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user