Skip to content

Commit

Permalink
KM-4856: Use same DefaultServerProvider instance across the app (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-said-rehouni authored Jul 12, 2024
1 parent 585f48c commit 92d3e4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions PIA VPN-tvOS/Bootstraper/BootstraperFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class BootstraperFactory {

private static func loadDataBase() {
Client.database = Client.Database(group: AppConstants.appGroup)
Client.providers.serverProvider = ServerProviderFactory.makeDefaultServerProvider()
}

private static func setupPreferences() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class DedicatedIPViewModel: ObservableObject {
guard let server = getDedicatedIp(),
let dipIKEv2IP = server.dipIKEv2IP,
let dipStatusString = server.dipStatusString else {
dedicatedIPStats = []
Task { @MainActor in
dedicatedIPStats = []
}
return
}
Task { @MainActor in
Expand All @@ -55,8 +57,8 @@ class DedicatedIPViewModel: ObservableObject {

do {
try await activateDIPToken(token: token)
onAppear()
Task { @MainActor in
onAppear()
showActivatedDialog = true
}
} catch {
Expand Down
2 changes: 1 addition & 1 deletion PIA VPN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7771,7 +7771,7 @@
repositoryURL = "https://github.com/pia-foss/mobile-ios-library.git";
requirement = {
kind = revision;
revision = e864a59d6d1aa2d820016dcac074bfc070a89aca;
revision = 40c1afb5f143bd061e322093a6d11e798739c10c;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down

0 comments on commit 92d3e4f

Please sign in to comment.