marinofaggiana 4 жил өмнө
parent
commit
04e30f2dc5

+ 2 - 0
iOSClient/Networking/NCNetworking.swift

@@ -221,6 +221,8 @@ import Alamofire
         metadata.session = NCCommunicationCommon.shared.sessionIdentifierDownload
         if let result = NCManageDatabase.sharedInstance.addMetadata(metadata) { metadata = result }
         
+        debugPrint("[LOG] Download Request: " + "\(self.downloadRequest.count)")
+        
         NCCommunication.shared.download(serverUrlFileName: serverUrlFileName, fileNameLocalPath: fileNameLocalPath, requestHandler: { (request) in
             
             self.downloadRequest[fileNameLocalPath] = request

+ 1 - 7
iOSClient/Networking/NCOperationQueue.swift

@@ -38,7 +38,7 @@ import Queuer
         let concurrentOperation = ConcurrentOperation { _ in
             
             NCNetworking.shared.download(metadata: metadata, selector: selector, setFavorite: setFavorite) { (errorCode) in
-                
+                self.finish()
             }
             
             
@@ -46,13 +46,7 @@ import Queuer
         concurrentOperation.addToQueue(transferQueue)
     }
     
-    override func execute() {
-        
-    }
     
-    override func finish(success: Bool = true) {
-        
-    }
     
    
 }