marinofaggiana 4 years ago
parent
commit
4ed7b1c29a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Networking/NCOperationQueue.swift

+ 2 - 2
iOSClient/Networking/NCOperationQueue.swift

@@ -50,7 +50,7 @@ import NCCommunication
     
     
     @objc func download(metadata: tableMetadata, selector: String, setFavorite: Bool) {
     @objc func download(metadata: tableMetadata, selector: String, setFavorite: Bool) {
         for operation in downloadQueue.operations as! [NCOperationDownload]  {
         for operation in downloadQueue.operations as! [NCOperationDownload]  {
-            if operation.metadata.ocId == metadata.ocId && operation.selector == selector {
+            if operation.metadata.ocId == metadata.ocId {
                 return
                 return
             }
             }
         }
         }
@@ -67,7 +67,7 @@ import NCCommunication
     
     
     @objc func synchronizationMetadata(_ metadata: tableMetadata, selector: String) {
     @objc func synchronizationMetadata(_ metadata: tableMetadata, selector: String) {
         for operation in synchronizationQueue.operations as! [NCOperationSynchronization] {
         for operation in synchronizationQueue.operations as! [NCOperationSynchronization] {
-            if operation.metadata.ocId == metadata.ocId && operation.selector == selector {
+            if operation.metadata.ocId == metadata.ocId {
                 return
                 return
             }
             }
         }
         }