mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09: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 =>
|
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(() =>
|
Scheduler.Add(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user