UI: When reloading tunnels, preserve '.waiting' state

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2021-07-27 13:35:30 +05:30
parent a261d84fc6
commit 03ef79c0fd
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ class TunnelContainer: NSObject {
}
func refreshStatus() {
if status == .restarting {
if (status == .restarting) || (status == .waiting && tunnelProvider.connection.status == .disconnected) {
return
}
status = TunnelStatus(from: tunnelProvider.connection.status)