fix crash when disconnecting, fix close terminal on exit

This commit is contained in:
neon443 committed 2025-06-26 12:49:27 +01:00
1 parent 319373682c
commit 51459f1839
2 files changed
+6 -10

No files matched your search

+1 -2
View File
@@ -17,7 +17,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
@Published var title: String = ""
@Published var state: SSHState = .idle
var connected: Bool {
return checkConnected(state)
return ssh_channel_is_open(channel) == 1 && checkConnected(state)
}
@Published var testSuceeded: Bool? = nil
@@ -46,7 +46,6 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
func go() {
guard !connected else {
withAnimation { state = .idle }
disconnect()
return
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.