marinofaggiana 4 년 전
부모
커밋
59c070e7db
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      iOSClient/Networking/NCNetworking.swift

+ 4 - 4
iOSClient/Networking/NCNetworking.swift

@@ -474,11 +474,11 @@ import Queuer
         
         NCCommunication.shared.createFolder(uploadFolder) { (_, _, _, errorCode, errorDescription) in
         
-            if errorCode == 0 || errorCode == NCGlobal.shared.errordMethodNotSupported {
+            if errorCode == 0 || errorCode == NCGlobal.shared.errordMethodNotSupported { // errordMethodNotSupported = already exists
                     
-                DispatchQueue.global(qos: .background).async {
-                                                
-                    NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": metadata.ocId])
+                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": metadata.ocId])
+                
+                DispatchQueue.global(qos: .background).async {                   
                         
                     for fileName in filesNames {