1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Ensure updateLocalRoomSettings is only called after full population

This commit is contained in:
Dean Herbert 2021-12-02 14:31:59 +09:00
parent a8e17cb3a5
commit 624ec4580a

View File

@ -458,11 +458,17 @@ namespace osu.Game.Online.Multiplayer
{
GetAPIBeatmap(playlistItem.BeatmapID).ContinueWith(b =>
{
Scheduler.Add(() => playlistItem.Beatmap.Value = b.Result);
}, TaskContinuationOptions.OnlyOnRanToCompletion);
}
bool success = b.IsCompletedSuccessfully;
updateLocalRoomSettings(newSettings);
Scheduler.Add(() =>
{
if (success)
playlistItem.Beatmap.Value = b.Result;
updateLocalRoomSettings(newSettings);
});
});
}
});
return Task.CompletedTask;