VPN: We have to start observing the tunnelContainer before we attempt to activate it

This commit is contained in:
Roopesh Chander 2018-11-01 01:54:19 +05:30
parent fd30ce0e0d
commit c681b02f7d
1 changed files with 1 additions and 1 deletions

View File

@ -234,8 +234,8 @@ class TunnelsManager {
completionHandler(TunnelActivationError.attemptingActivationWhenAnotherTunnelIsActive) completionHandler(TunnelActivationError.attemptingActivationWhenAnotherTunnelIsActive)
return return
} }
tunnel.startActivation(completionHandler: completionHandler)
setCurrentTunnel(tunnel: tunnel) setCurrentTunnel(tunnel: tunnel)
tunnel.startActivation(completionHandler: completionHandler)
} }
func startDeactivation(of tunnel: TunnelContainer, completionHandler: @escaping (Error?) -> Void) { func startDeactivation(of tunnel: TunnelContainer, completionHandler: @escaping (Error?) -> Void) {