VPN: We have to start observing the tunnelContainer before we attempt to activate it
This commit is contained in:
parent
fd30ce0e0d
commit
c681b02f7d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue