marinofaggiana 6 years ago
parent
commit
9a17e3667c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Main/NCMainCommon.swift

+ 3 - 1
iOSClient/Main/NCMainCommon.swift

@@ -1275,7 +1275,9 @@ class NCNetworkingMain: NSObject, CCNetworkingDelegate {
         NCMainCommon.sharedInstance.reloadDatasource(ServerUrl: serverUrl, fileID: fileID, action: Int32(k_action_MOD))
         
         if errorCode == 0 {
-            self.appDelegate.performSelector(onMainThread: #selector(self.appDelegate.loadAutoDownloadUpload), with: nil, waitUntilDone: true)
+            if self.appDelegate.timerProcessAutoDownloadUpload.isValid {
+                self.appDelegate.performSelector(onMainThread: #selector(self.appDelegate.loadAutoDownloadUpload), with: nil, waitUntilDone: true)
+            }
         } else {
             if errorCode != -999 && errorCode != kOCErrorServerUnauthorized && errorMessage != "" {
                 appDelegate.messageNotification("_upload_file_", description: errorMessage, visible: true, delay: TimeInterval(k_dismissAfterSecond), type: TWMessageBarMessageType.error, errorCode: errorCode)