mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00: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 });
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user