瀏覽代碼

Search timeout 300

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父節點
當前提交
1120859a6b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      iOSClient/Media/NCMedia.swift

+ 2 - 2
iOSClient/Media/NCMedia.swift

@@ -526,7 +526,7 @@ extension NCMedia {
         let height = self.tabBarController?.tabBar.frame.size.height ?? 0
         let height = self.tabBarController?.tabBar.frame.size.height ?? 0
         NCUtility.shared.startActivityIndicator(backgroundView: self.view, blurEffect: false, bottom: height + 50, style: .gray)
         NCUtility.shared.startActivityIndicator(backgroundView: self.view, blurEffect: false, bottom: height + 50, style: .gray)
 
 
-        NCCommunication.shared.searchMedia(path: mediaPath, lessDate: lessDate, greaterDate: greaterDate, elementDate: "d:getlastmodified/", limit: limit, showHiddenFiles: CCUtility.getShowHiddenFiles(), timeout: 120) { account, files, errorCode, errorDescription in
+        NCCommunication.shared.searchMedia(path: mediaPath, lessDate: lessDate, greaterDate: greaterDate, elementDate: "d:getlastmodified/", limit: limit, showHiddenFiles: CCUtility.getShowHiddenFiles(), timeout: 300) { account, files, errorCode, errorDescription in
 
 
             self.oldInProgress = false
             self.oldInProgress = false
             NCUtility.shared.stopActivityIndicator()
             NCUtility.shared.stopActivityIndicator()
@@ -605,7 +605,7 @@ extension NCMedia {
 
 
         reloadDataThenPerform {
         reloadDataThenPerform {
 
 
-            NCCommunication.shared.searchMedia(path: self.mediaPath, lessDate: lessDate, greaterDate: greaterDate, elementDate: "d:getlastmodified/", limit: limit, showHiddenFiles: CCUtility.getShowHiddenFiles(), timeout: 120) { account, files, errorCode, errorDescription in
+            NCCommunication.shared.searchMedia(path: self.mediaPath, lessDate: lessDate, greaterDate: greaterDate, elementDate: "d:getlastmodified/", limit: limit, showHiddenFiles: CCUtility.getShowHiddenFiles(), timeout: 300) { account, files, errorCode, errorDescription in
 
 
                 self.newInProgress = false
                 self.newInProgress = false
                 self.mediaCommandView?.activityIndicator.stopAnimating()
                 self.mediaCommandView?.activityIndicator.stopAnimating()