mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Fix crash when exiting seeding editor too soon
Closes https://github.com/ppy/osu/issues/20783.
This commit is contained in:
parent
995216cced
commit
14704fd07c
@ -239,17 +239,17 @@ namespace osu.Game.Tournament.Screens.Editors
|
|||||||
|
|
||||||
var req = new GetBeatmapRequest(new APIBeatmap { OnlineID = Model.ID });
|
var req = new GetBeatmapRequest(new APIBeatmap { OnlineID = Model.ID });
|
||||||
|
|
||||||
req.Success += res =>
|
req.Success += res => Schedule(() =>
|
||||||
{
|
{
|
||||||
Model.Beatmap = new TournamentBeatmap(res);
|
Model.Beatmap = new TournamentBeatmap(res);
|
||||||
updatePanel();
|
updatePanel();
|
||||||
};
|
});
|
||||||
|
|
||||||
req.Failure += _ =>
|
req.Failure += _ => Schedule(() =>
|
||||||
{
|
{
|
||||||
Model.Beatmap = null;
|
Model.Beatmap = null;
|
||||||
updatePanel();
|
updatePanel();
|
||||||
};
|
});
|
||||||
|
|
||||||
API.Queue(req);
|
API.Queue(req);
|
||||||
}, true);
|
}, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user