Sfoglia il codice sorgente

improved code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 anni fa
parent
commit
12836223a1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      iOSClient/Networking/NCNetworkingChunkedUpload.swift

+ 1 - 1
iOSClient/Networking/NCNetworkingChunkedUpload.swift

@@ -146,7 +146,7 @@ extension NCNetworking {
             addCustomHeaders["X-OC-CTime"] = creationDate
             addCustomHeaders["X-OC-MTime"] = modificationDate
 
-            NCCommunication.shared.moveFileOrFolder(serverUrlFileNameSource: serverUrlFileNameSource, serverUrlFileNameDestination: serverUrlFileNameDestination, overwrite: true, addCustomHeaders: addCustomHeaders) { _, errorCode, errorDescription in
+            NCCommunication.shared.moveFileOrFolder(serverUrlFileNameSource: serverUrlFileNameSource, serverUrlFileNameDestination: serverUrlFileNameDestination, overwrite: true, addCustomHeaders: addCustomHeaders, queue: DispatchQueue.global(qos: .background)) { _, errorCode, errorDescription in
 
                 NCCommunicationCommon.shared.writeLog("Assembling chunk with error code: \(errorCode)")