diff --git a/ShhShell/Views/Hosts/ConnectionView.swift b/ShhShell/Views/Hosts/ConnectionView.swift index 52ed7fb..1dad412 100644 --- a/ShhShell/Views/Hosts/ConnectionView.swift +++ b/ShhShell/Views/Hosts/ConnectionView.swift @@ -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") } diff --git a/ShhShell/Views/Terminal/ShellTabView.swift b/ShhShell/Views/Terminal/ShellTabView.swift index 99d567c..07380b1 100644 --- a/ShhShell/Views/Terminal/ShellTabView.swift +++ b/ShhShell/Views/Terminal/ShellTabView.swift @@ -52,6 +52,7 @@ struct ShellTabView: View { for session in container.sessions.values { session.handler.disconnect() } + container.sessions.removeAll() dismiss() } label: { TrafficLightRed()