Fail gracefully when refreshing infrastructure (#307)

This commit is contained in:
Davide De Rosa 2023-05-27 13:52:57 +02:00 committed by GitHub
parent a78a7b18b5
commit d05cf7140c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ extension ProfileView {
private func refreshInfrastructure() { private func refreshInfrastructure() {
isRefreshingInfrastructure = true isRefreshingInfrastructure = true
Task { @MainActor in Task { @MainActor in
try await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async() try? await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async()
isRefreshingInfrastructure = false isRefreshingInfrastructure = false
} }
} }