1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

Keep downloads active until their associated import operation finishes

This avoids race conditions where a second download can potentially be started while the first is still active.
This commit is contained in:
Dean Herbert 2018-01-22 13:17:03 +09:00
parent 64c32f5715
commit 88beee2d1f

View File

@ -287,9 +287,8 @@ namespace osu.Game.Beatmaps
Import(archive);
downloadNotification.State = ProgressNotificationState.Completed;
currentDownloads.Remove(request);
}, TaskCreationOptions.LongRunning);
currentDownloads.Remove(request);
};
request.Failure += data =>