Browse Source

small fix

Marino Faggiana 6 years ago
parent
commit
38cfa299b4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      iOSClient/Settings/CCAdvanced.m

+ 4 - 2
iOSClient/Settings/CCAdvanced.m

@@ -356,8 +356,10 @@
     [appDelegate maintenanceMode:YES];
     [appDelegate maintenanceMode:YES];
     
     
     [self.hud visibleHudTitle:NSLocalizedString(@"_remove_cache_", nil) mode:MBProgressHUDModeIndeterminate color:nil];
     [self.hud visibleHudTitle:NSLocalizedString(@"_remove_cache_", nil) mode:MBProgressHUDModeIndeterminate color:nil];
-        
-    [appDelegate.netQueue cancelAllOperations];
+    
+    if (withDB) {
+        [appDelegate.netQueue cancelAllOperations];
+    }
     
     
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC),dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC),dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{