Fix crash when exiting seeding editor too soon

Closes https://github.com/ppy/osu/issues/20783.
This commit is contained in:
Dean Herbert 2022-10-24 16:08:49 +09:00
parent 995216cced
commit 14704fd07c

View File

@ -239,17 +239,17 @@ namespace osu.Game.Tournament.Screens.Editors
var req = new GetBeatmapRequest(new APIBeatmap { OnlineID = Model.ID });
req.Success += res =>
req.Success += res => Schedule(() =>
{
Model.Beatmap = new TournamentBeatmap(res);
updatePanel();
};
});
req.Failure += _ =>
req.Failure += _ => Schedule(() =>
{
Model.Beatmap = null;
updatePanel();
};
});
API.Queue(req);
}, true);