Check network reachability before attempting to restart the sync service

This commit is contained in:
Stefan Ceriu
2023-10-12 12:39:53 +03:00
parent 8e03b89641
commit 7f09c02298
6 changed files with 70 additions and 14 deletions
@@ -142,7 +142,8 @@ class UserSessionStore: UserSessionStoreProtocol {
let clientProxy = await ClientProxy(client: client,
backgroundTaskService: backgroundTaskService,
appSettings: ServiceLocator.shared.settings)
appSettings: ServiceLocator.shared.settings,
networkMonitor: ServiceLocator.shared.networkMonitor)
return .success(clientProxy)
}