[iOS] Fixed NSDictionary iteration.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-06-04 14:59:01 +03:00 committed by Roman Tsisyk
parent bc3ef16d5d
commit 0bfdc387ea

View file

@ -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;