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