Commit f53db293 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '167-bug-installing-profile-from-fresh-install' into 'release/2.2.0'

Resolve "Bug installing profile from fresh install"

See merge request ios/client-library-apple!224
parents a05aa568 1a45ace8
...@@ -86,11 +86,6 @@ extension NetworkExtensionProfile { ...@@ -86,11 +86,6 @@ extension NetworkExtensionProfile {
log.debug("Raw manager: \(vpn)") log.debug("Raw manager: \(vpn)")
vpn.isEnabled = true vpn.isEnabled = true
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
return
}
vpn.saveToPreferences { (error) in vpn.saveToPreferences { (error) in
if let error = error { if let error = error {
callback?(error) callback?(error)
...@@ -101,7 +96,6 @@ extension NetworkExtensionProfile { ...@@ -101,7 +96,6 @@ extension NetworkExtensionProfile {
} }
} }
} }
}
private func configureOnDemandOnWiFiNetworksFor(_ trustedNetworks: [String], private func configureOnDemandOnWiFiNetworksFor(_ trustedNetworks: [String],
......
...@@ -74,7 +74,7 @@ class VPNActionDisconnectAndReinstall: VPNAction, ProvidersAccess { ...@@ -74,7 +74,7 @@ class VPNActionDisconnectAndReinstall: VPNAction, ProvidersAccess {
callback?(nil) callback?(nil)
return return
} }
vpn.reconnect(after: nil, callback) vpn.connect(callback)
}) })
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment