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:
Roopesh Chander 2018-11-01 01:54:19 +05:30
parent 066449b207
commit cf7966e876
1 changed files with 1 additions and 1 deletions

View File

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