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:
parent
91aa38c4f6
commit
5ff452cc9a
@ -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(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user