diff --git a/ShhShell/SSH/SSHHandler.swift b/ShhShell/SSH/SSHHandler.swift index 6c4f10b..8aa2824 100644 --- a/ShhShell/SSH/SSHHandler.swift +++ b/ShhShell/SSH/SSHHandler.swift @@ -400,7 +400,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject { // print(String(data: Data(bytes: buffer, count: Int(nbytes)), encoding: .utf8)!) #endif Task { @MainActor in - scrollback.append(string) + scrollback.append(string) if scrollbackSize/1024/1024 > 10 { scrollback.remove(at: 0) } else { diff --git a/ShhShell/Views/Terminal/SSHTerminalView.swift b/ShhShell/Views/Terminal/SSHTerminalView.swift index 4505a96..9aef1ed 100644 --- a/ShhShell/Views/Terminal/SSHTerminalView.swift +++ b/ShhShell/Views/Terminal/SSHTerminalView.swift @@ -22,7 +22,7 @@ final class SSHTerminalView: TerminalView, Sendable, @preconcurrency TerminalVie DispatchQueue.main.async { Task { - guard let handler = await self.handler else { return } + guard let handler = self.handler else { return } while handler.connected { if let read = handler.readFromChannel() { await MainActor.run {