Fix warning

This commit is contained in:
Nathan Mattes 2023-11-05 21:19:53 +01:00
parent aedade6d5b
commit 0c3313227b
1 changed files with 27 additions and 35 deletions

View File

@ -223,7 +223,6 @@ extension SceneCoordinator {
func setup() {
let rootViewController: UIViewController
do {
let _authentication = AuthenticationServiceProvider.shared.authenticationSortedByActivation().first
let _authContext = _authentication.flatMap { AuthContext(authentication: $0) }
self.authContext = _authContext
@ -240,6 +239,7 @@ extension SceneCoordinator {
self.tabBarController = splitViewController.contentSplitViewController.mainTabBarController
rootViewController = splitViewController
}
sceneDelegate.window?.rootViewController = rootViewController // base: main
self.rootViewController = rootViewController
@ -252,14 +252,6 @@ extension SceneCoordinator {
)
}
}
} catch {
assertionFailure(error.localizedDescription)
Task {
try? await Task.sleep(nanoseconds: .second * 2)
setup() // entry #2: retry
} // end Task
}
}
@MainActor