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(); request?.Cancel();
loadCancellation?.Cancel(); loadCancellation?.Cancel();
request = new GetCommentsRequest(id.Value, type.Value, Sort.Value, currentPage++, 0); request = new GetCommentsRequest(id.Value, type.Value, Sort.Value, currentPage++, 0);
request.Success += onSuccess; request.Success += res => Schedule(() => onSuccess(res));
api.PerformAsync(request); api.PerformAsync(request);
} }