VPN: We have to start observing the tunnelContainer before we attempt to activate it
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
066449b207
commit
cf7966e876
|
@ -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