Marino Faggiana 7 tahun lalu
induk
melakukan
3f714be27b
1 mengubah file dengan 14 tambahan dan 19 penghapusan
  1. 14 19
      iOSClient/AppDelegate.m

+ 14 - 19
iOSClient/AppDelegate.m

@@ -306,32 +306,27 @@
     if (self.maintenanceMode)
         return;
 
-    // Execute : now
     NSLog(@"[LOG] Update contenttype image for Photos Tab");
     [[CCSynchronize sharedSynchronize] searchContentType:@[@"image/%", @"video/%"] selector:selectorSearchContentType];
     
-    // Execute : after 1 sec.
-    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
-        
-        // verify Upload
-        [self verifyUploadInErrorOrWait];
+    // verify Upload
+    [self verifyUploadInErrorOrWait];
 
-        if (_activeMain) {
-            NSLog(@"[LOG] Request Server Capabilities");
-            [_activeMain requestServerCapabilities];
-        }
+    if (_activeMain) {
+        NSLog(@"[LOG] Request Server Capabilities");
+        [_activeMain requestServerCapabilities];
+    }
         
-        if (_activeMain && [[NCBrandOptions sharedInstance] use_middlewarePing]) {
-            NSLog(@"[LOG] Middleware Ping");
-            [_activeMain middlewarePing];
-        }
+    if (_activeMain && [[NCBrandOptions sharedInstance] use_middlewarePing]) {
+        NSLog(@"[LOG] Middleware Ping");
+        [_activeMain middlewarePing];
+    }
         
-        NSLog(@"[LOG] Initialize Auto upload");
-        [[NCAutoUpload sharedInstance] initStateAutoUpload];
+    NSLog(@"[LOG] Initialize Auto upload");
+    [[NCAutoUpload sharedInstance] initStateAutoUpload];
         
-        NSLog(@"[LOG] Listning Favorites");
-        [_activeFavorites readListingFavorites];
-    });
+    NSLog(@"[LOG] Listning Favorites");
+    [_activeFavorites readListingFavorites];
 }
 
 #pragma --------------------------------------------------------------------------------------------