Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 năm trước cách đây
mục cha
commit
a0f1e63ef5
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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()