1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Merge pull request #1062 from peppy/fix-non-scheduled-callback

Fix a potential hard crash when exiting song select
This commit is contained in:
Dan Balasescu 2017-07-27 16:56:53 +09:30 committed by GitHub
commit 32d207e516

View File

@ -86,7 +86,7 @@ namespace osu.Game.Screens.Select
requestedBeatmap.Metrics = res;
Schedule(() => updateMetrics(res));
};
lookup.Failure += e => updateMetrics(null);
lookup.Failure += e => Schedule(() => updateMetrics(null));
api.Queue(lookup);
loading.Show();