Move logic to extension: .resolvingEndpointDomains is not longer a valid status
This commit is contained in:
parent
7c9d45ac97
commit
3f3f22a048
|
@ -33,8 +33,6 @@ class ErrorPresenter {
|
||||||
case .restarting:
|
case .restarting:
|
||||||
return "active"
|
return "active"
|
||||||
case .activating: fallthrough
|
case .activating: fallthrough
|
||||||
case .resolvingEndpointDomains:
|
|
||||||
return "being activated"
|
|
||||||
case .deactivating:
|
case .deactivating:
|
||||||
return "being deactivated"
|
return "being deactivated"
|
||||||
case .inactive:
|
case .inactive:
|
||||||
|
|
|
@ -259,8 +259,6 @@ class TunnelDetailTableViewStatusCell: UITableViewCell {
|
||||||
text = "Deactivating"
|
text = "Deactivating"
|
||||||
case .reasserting:
|
case .reasserting:
|
||||||
text = "Reactivating"
|
text = "Reactivating"
|
||||||
case .resolvingEndpointDomains:
|
|
||||||
text = "Resolving domains"
|
|
||||||
case .restarting:
|
case .restarting:
|
||||||
text = "Restarting"
|
text = "Restarting"
|
||||||
}
|
}
|
||||||
|
|
|
@ -372,10 +372,6 @@ class TunnelContainer: NSObject {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (s.status == .resolvingEndpointDomains && connection.status == .disconnected) {
|
|
||||||
// Don't change to .inactive if we're still resolving endpoints
|
|
||||||
return
|
|
||||||
}
|
|
||||||
s.status = TunnelStatus(from: connection.status)
|
s.status = TunnelStatus(from: connection.status)
|
||||||
if (s.status == .inactive) {
|
if (s.status == .inactive) {
|
||||||
s.statusObservationToken = nil
|
s.statusObservationToken = nil
|
||||||
|
@ -392,7 +388,6 @@ class TunnelContainer: NSObject {
|
||||||
case reasserting // Not a possible state at present
|
case reasserting // Not a possible state at present
|
||||||
|
|
||||||
case restarting // Restarting tunnel (done after saving modifications to an active tunnel)
|
case restarting // Restarting tunnel (done after saving modifications to an active tunnel)
|
||||||
case resolvingEndpointDomains // DNS resolution in progress
|
|
||||||
|
|
||||||
init(from vpnStatus: NEVPNStatus) {
|
init(from vpnStatus: NEVPNStatus) {
|
||||||
switch (vpnStatus) {
|
switch (vpnStatus) {
|
||||||
|
|
Loading…
Reference in New Issue