cant figure out why the wierd keyboard issue happens, disabled auto reconnect on accepting the key.

fix the ghost sessions
This commit is contained in:
neon443
2025-08-05 11:39:51 +01:00
parent ca34d3eafb
commit 978e39cb3b
2 changed files with 3 additions and 2 deletions

View File

@@ -113,8 +113,8 @@ struct ConnectionView: View {
Button(role: .destructive) {
handler.host.key = handler.getHostkey()
handler.disconnect()
handler.go()
showTerminal = checkShell(handler.state)
// handler.go()
// showTerminal = checkShell(handler.state)
} label: {
Text("Accept Hostkey")
}

View File

@@ -52,6 +52,7 @@ struct ShellTabView: View {
for session in container.sessions.values {
session.handler.disconnect()
}
container.sessions.removeAll()
dismiss()
} label: {
TrafficLightRed()