mirror of
https://github.com/osukey/osukey.git
synced 2025-05-22 22:17:36 +09: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 =>
|
GetAPIBeatmap(playlistItem.BeatmapID).ContinueWith(b =>
|
||||||
{
|
{
|
||||||
Scheduler.Add(() => playlistItem.Beatmap.Value = b.Result);
|
bool success = b.IsCompletedSuccessfully;
|
||||||
}, TaskContinuationOptions.OnlyOnRanToCompletion);
|
|
||||||
}
|
|
||||||
|
|
||||||
updateLocalRoomSettings(newSettings);
|
Scheduler.Add(() =>
|
||||||
|
{
|
||||||
|
if (success)
|
||||||
|
playlistItem.Beatmap.Value = b.Result;
|
||||||
|
|
||||||
|
updateLocalRoomSettings(newSettings);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user