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) { Button(role: .destructive) {
handler.host.key = handler.getHostkey() handler.host.key = handler.getHostkey()
handler.disconnect() handler.disconnect()
handler.go() // handler.go()
showTerminal = checkShell(handler.state) // showTerminal = checkShell(handler.state)
} label: { } label: {
Text("Accept Hostkey") Text("Accept Hostkey")
} }

View File

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