1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Fix DownloadTrackingComposite incorrectly receiving cancelled state

This commit is contained in:
Dean Herbert 2020-02-15 16:20:44 +09:00
parent ff3801b860
commit 120dab18cf

View File

@ -105,9 +105,10 @@ namespace osu.Game.Database
void triggerFailure(Exception error)
{
currentDownloads.Remove(request);
DownloadFailed?.Invoke(request);
currentDownloads.Remove(request);
notification.State = ProgressNotificationState.Cancelled;
if (!(error is OperationCanceledException))