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