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

Fix bug installing profile from fresh install

parent a05aa568
......@@ -91,14 +91,8 @@ extension NetworkExtensionProfile {
callback?(error)
return
}
vpn.saveToPreferences { (error) in
if let error = error {
callback?(error)
return
}
vpn.loadFromPreferences { (error) in
callback?(nil)
}
vpn.loadFromPreferences { (error) in
callback?(nil)
}
}
}
......
......@@ -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