simlplify read from channel loop

main thread ui updates in disconnect()
This commit is contained in:
neon443 committed 2025-06-26 12:32:38 +01:00
1 parent 42883c4ac9
commit 319373682c
3 files changed
+10 -11

No files matched your search

+4 -2
View File
@@ -127,8 +127,10 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
}
func disconnect() {
withAnimation { self.state = .idle }
withAnimation { self.testSuceeded = nil }
DispatchQueue.main.async {
withAnimation { self.state = .idle }
withAnimation { self.testSuceeded = nil }
}
//send eof if open
if ssh_channel_is_open(channel) == 1 {
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.