瀏覽代碼

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
a0f1e63ef5
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      iOSClient/Networking/NCService.swift

+ 1 - 2
iOSClient/Networking/NCService.swift

@@ -39,8 +39,7 @@ class NCService: NSObject {
     @objc public func startRequestServicesServer() {
 
         NCManageDatabase.shared.clearAllAvatarLoaded()
-
-        guard !appDelegate.account.isEmpty else { return }
+        guard !appDelegate.account.isEmpty, UIApplication.shared.applicationState == .active else { return }
 
         addInternalTypeIdentifier()
         requestServerStatus()