diff --git a/platform/background_downloader_ios.mm b/platform/background_downloader_ios.mm index fd97769627..0cf3aee0bc 100644 --- a/platform/background_downloader_ios.mm +++ b/platform/background_downloader_ios.mm @@ -90,8 +90,10 @@ NSString *urlString = downloadTask.currentRequest.URL.path; BOOL isTaskReplaced = NO; - /// Replacing task with another one which was added into queue earlier (on previous application session). - for (TaskInfo *info in self.tasks) { + // Replacing task with another one which was added into queue earlier (on previous application session). + for (id key in self.tasks) + { + TaskInfo * info = [self.tasks objectForKey:key]; if (![info.task.currentRequest.URL.path isEqualToString:urlString]) continue;