improve disconnection on testexec - it disconnects right after testing exec!

- it saves the result of tesetexec even tho disconnect clears it
 - moved the logic into sshhandler
This commit is contained in:
neon443 committed 2025-06-25 12:00:49 +01:00
1 parent 5d80c69152
commit e8494b9296
2 files changed
+8 -7

No files matched your search

+8
View File
@@ -156,6 +156,14 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
}
func testExec() {
defer {
Task { @MainActor in
let result = self.testSuceeded
await disconnect()
withAnimation { testSuceeded = result }
}
}
if ssh_is_connected(session) == 0 {
withAnimation { testSuceeded = false }
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.