浏览代码

remove second call to update state in the WatchManagers init()

polscm32 aka Marvout 1 年之前
父节点
当前提交
e5adeb8447
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      FreeAPS/Sources/Services/WatchManager/WatchManager.swift

+ 1 - 4
FreeAPS/Sources/Services/WatchManager/WatchManager.swift

@@ -67,6 +67,7 @@ final class BaseWatchManager: NSObject, WatchManager, Injectable {
         setupNotification()
         coreDataObserver = CoreDataObserver()
         registerHandlers()
+        
         Task {
             await configureState()
         }
@@ -91,10 +92,6 @@ final class BaseWatchManager: NSObject, WatchManager, Injectable {
             }
             return data
         }
-
-        Task {
-            await configureState()
-        }
     }
 
     func setupNotification() {