1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 14:42:56 +08:00

Fix crash on switching comments page at an inopportune time

This commit is contained in:
Dean Herbert 2020-04-24 18:18:10 +09:00
parent 59bd2b3035
commit cbcd915ec8

View File

@ -153,7 +153,7 @@ namespace osu.Game.Overlays.Comments
request?.Cancel();
loadCancellation?.Cancel();
request = new GetCommentsRequest(id.Value, type.Value, Sort.Value, currentPage++, 0);
request.Success += onSuccess;
request.Success += res => Schedule(() => onSuccess(res));
api.PerformAsync(request);
}