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:
parent
64c32f5715
commit
88beee2d1f
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user