UI: When reloading tunnels, preserve '.waiting' state
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
a261d84fc6
commit
03ef79c0fd
|
@ -614,7 +614,7 @@ class TunnelContainer: NSObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
func refreshStatus() {
|
func refreshStatus() {
|
||||||
if status == .restarting {
|
if (status == .restarting) || (status == .waiting && tunnelProvider.connection.status == .disconnected) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
status = TunnelStatus(from: tunnelProvider.connection.status)
|
status = TunnelStatus(from: tunnelProvider.connection.status)
|
||||||
|
|
Loading…
Reference in New Issue