Commit 1a45ace8 authored by Jose Blaya's avatar Jose Blaya
Browse files

Fix bug installing profile from fresh install

parent a05aa568
......@@ -86,11 +86,6 @@ extension NetworkExtensionProfile {
log.debug("Raw manager: \(vpn)")
vpn.isEnabled = true
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
return
}
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
......@@ -101,7 +96,6 @@ extension NetworkExtensionProfile {
}
}
}
}
private func configureOnDemandOnWiFiNetworksFor(_ trustedNetworks: [String],
......
......@@ -74,7 +74,7 @@ class VPNActionDisconnectAndReinstall: VPNAction, ProvidersAccess {
callback?(nil)
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