瀏覽代碼

clear code

Marino Faggiana 7 年之前
父節點
當前提交
16ef541c27
共有 2 個文件被更改,包括 6 次插入7 次删除
  1. 6 0
      iOSClient/AppDelegate.m
  2. 0 7
      iOSClient/Main/CCMain.m

+ 6 - 0
iOSClient/AppDelegate.m

@@ -264,6 +264,12 @@
     
     // verify Upload
     [self verifyUploadInErrorOrWait];
+    
+    // middelware ping
+    if ([[NCBrandOptions sharedInstance] use_middlewarePing] && _activeMain) {
+        NSLog(@"[LOG] Middleware Ping");
+        [_activeMain middlewarePing];
+    }
 }
 
 //

+ 0 - 7
iOSClient/Main/CCMain.m

@@ -1224,13 +1224,6 @@
         [self cancelSearchBar];
     }
     
-    // ------ MIDDLEWARE PING ---------------------------------------------------------------
-    
-    if ([[NCBrandOptions sharedInstance] use_middlewarePing]) {
-        NSLog(@"[LOG] Middleware Ping");
-        [self middlewarePing];
-    }
-    
     // ------ GET SERVICE SERVER ------------------------------------------------------------
     
     // Read User Profile