marinofaggiana 4 years ago
parent
commit
a28e8220ed
1 changed files with 1 additions and 5 deletions
  1. 1 5
      iOSClient/AppDelegate.m

+ 1 - 5
iOSClient/AppDelegate.m

@@ -1099,15 +1099,11 @@
 {
     NSLog(@"[LOG] Start handle Events For Background URLSession: %@", identifier);
     
-    // after 20 sec
-    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 20 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
-        
+    dispatch_async(dispatch_get_main_queue(), ^{
         self.backgroundSessionCompletionHandler = completionHandler;
         void (^completionHandler)() = self.backgroundSessionCompletionHandler;
         self.backgroundSessionCompletionHandler = nil;
         completionHandler();
-        
-        NSLog(@"[LOG] End 20 sec. Start handle Events For Background URLSession: %@", identifier);
     });
 }