Marino Faggiana 6 years ago
parent
commit
d0510b8ca4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      PickerFileProvider/FileProvider.swift

+ 2 - 4
PickerFileProvider/FileProvider.swift

@@ -571,7 +571,6 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
             }
             
             let item = FileProviderItem(metadata: metadataDB, serverUrl: serverUrl)
-                
             completionHandler(item, nil)
             
         }, failure: { (errorMessage, errorCode) in
@@ -844,10 +843,9 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
         }
         
         let item = FileProviderItem(metadata: metadata, serverUrl: serverUrl)
-        
-        self.refreshEnumerator(identifier: itemIdentifier, serverUrl: "WorkingSet")
-        
         completionHandler(item, nil)
+
+        self.refreshEnumerator(identifier: itemIdentifier, serverUrl: "WorkingSet")        
     }
     
     /*