From cfbde8242977c7a1b691261dcd3611915de5714b Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Thu, 20 Feb 2014 00:16:54 -0800 Subject: [PATCH] only post activity notification once after cancels --- ios/MBXViewController.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index ba1b2978d..93161314a 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -420,14 +420,10 @@ namespace llmr [[NSURLSession sharedSession] getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks) { for (NSURLSessionDownloadTask *task in downloadTasks) - { if (task.taskDescription && ! [task.taskDescription isEqualToString:latestZoom]) - { [task cancel]; - [[NSNotificationCenter defaultCenter] postNotificationName:MBXUpdateActivityNotification object:nil]; - } - } + [[NSNotificationCenter defaultCenter] postNotificationName:MBXUpdateActivityNotification object:nil]; }]; NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@(url.c_str())] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error)