parent
b36189c5c9
commit
d1b41a6615
|
@ -111,10 +111,18 @@ private extension AppContext {
|
|||
return
|
||||
}
|
||||
Task {
|
||||
guard [.active, .activating].contains(tunnel.status) else {
|
||||
return
|
||||
}
|
||||
if profile.isInteractive {
|
||||
try await tunnel.disconnect()
|
||||
return
|
||||
}
|
||||
do {
|
||||
try await tunnel.connect(with: profile, processor: profileProcessor)
|
||||
} catch {
|
||||
try await tunnel.disconnect()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue