TunnelsManager: Remove unused variable
This commit is contained in:
parent
738b2dba52
commit
57b95e1e01
|
@ -80,8 +80,6 @@ class TunnelsManager {
|
|||
weak var activationDelegate: TunnelsManagerActivationDelegate?
|
||||
private var statusObservationToken: AnyObject?
|
||||
|
||||
var tunnelBeingActivated: TunnelContainer?
|
||||
|
||||
init(tunnelProviders: [NETunnelProviderManager]) {
|
||||
self.tunnels = tunnelProviders.map { TunnelContainer(tunnel: $0) }.sorted { $0.name < $1.name }
|
||||
self.startObservingTunnelStatuses()
|
||||
|
@ -271,7 +269,6 @@ class TunnelsManager {
|
|||
return
|
||||
}
|
||||
|
||||
tunnelBeingActivated = tunnel
|
||||
tunnel.startActivation(activationDelegate: self.activationDelegate)
|
||||
}
|
||||
|
||||
|
@ -313,7 +310,6 @@ class TunnelsManager {
|
|||
if (tunnel.status == .restarting) && (session.status == .disconnected || session.status == .disconnecting) {
|
||||
// Don't change tunnel.status when disconnecting for a restart
|
||||
if session.status == .disconnected {
|
||||
self.tunnelBeingActivated = tunnel
|
||||
tunnel.startActivation(activationDelegate: self.activationDelegate)
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue