浏览代码

bugfix readfolder DB

Marino Faggiana 8 年之前
父节点
当前提交
631b1a8766
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      iOSClient/Networking/OCNetworking.m

+ 4 - 1
iOSClient/Networking/OCNetworking.m

@@ -366,7 +366,10 @@
                         
                         fileName = [fileName substringToIndex:[fileName length] - 1];
                         NSString *serverUrl = [CCUtility stringAppendServerUrl:_metadataNet.serverUrl addFileName:fileName];
-                        [CCCoreData addDirectory:serverUrl permissions:nil activeAccount:_metadataNet.account];
+                        
+                        dispatch_async(dispatch_get_main_queue(), ^{
+                            [CCCoreData addDirectory:serverUrl permissions:nil activeAccount:_metadataNet.account];
+                        });
                     }
                     
                     if ([CCUtility isFileCryptated:fileName])