mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Merge pull request #20904 from peppy/fix-tournament-seeding-editor-crash
Fix crash when exiting seeding editor too soon
This commit is contained in:
commit
6ac7518df4
@ -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