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:
parent
a8e17cb3a5
commit
624ec4580a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user