1
0
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:
Bartłomiej Dach 2022-10-24 19:25:20 +02:00 committed by GitHub
commit 6ac7518df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);