marinofaggiana 4 years ago
parent
commit
448d11efb5
2 changed files with 4 additions and 9 deletions
  1. 0 7
      File Provider Extension/FileProviderDomain.swift
  2. 4 2
      iOSClient/AppDelegate.m

+ 0 - 7
File Provider Extension/FileProviderDomain.swift

@@ -87,11 +87,4 @@ class FileProviderDomain: NSObject {
         
         NSFileProviderManager.removeAllDomains { (_) in }
     }
-    
-    @objc func recreateDomains() {
-        
-        NSFileProviderManager.removeAllDomains { (_) in
-            self.recreateDomains()
-        }
-    }
 }

+ 4 - 2
iOSClient/AppDelegate.m

@@ -279,7 +279,10 @@
 // L'applicazione terminerà
 //
 - (void)applicationWillTerminate:(UIApplication *)application
-{    
+{
+    FileProviderDomain *fileProviderDomain = [FileProviderDomain new];
+    [fileProviderDomain removeAllDomains];
+    
     [[NCCommunicationCommon shared] writeLog:@"bye bye"];
 }
 
@@ -321,7 +324,6 @@
     // Registeration domain File Provider
     FileProviderDomain *fileProviderDomain = [FileProviderDomain new];
     [fileProviderDomain registerDomains];
-    //[fileProviderDomain removeAllDomain];
 }
 
 #pragma --------------------------------------------------------------------------------------------