|
@@ -352,13 +352,15 @@
|
|
|
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.5 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
|
|
|
|
|
- NSLog(@"[LOG] Request Server Capabilities");
|
|
|
- if (_activeMain)
|
|
|
+ if (_activeMain) {
|
|
|
+ NSLog(@"[LOG] Request Server Capabilities");
|
|
|
[_activeMain requestServerCapabilities];
|
|
|
-
|
|
|
- NSLog(@"[LOG] Middleware Ping");
|
|
|
- if (_activeMain && [[NCBrandOptions sharedInstance] use_middlewarePing])
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_activeMain && [[NCBrandOptions sharedInstance] use_middlewarePing]) {
|
|
|
+ NSLog(@"[LOG] Middleware Ping");
|
|
|
[_activeMain middlewarePing];
|
|
|
+ }
|
|
|
|
|
|
NSLog(@"[LOG] Initialize Auto upload");
|
|
|
[[NCAutoUpload sharedInstance] initStateAutoUpload];
|