From aa3435155366321f7114327dfbac3842093cc846 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 29 Jan 2026 13:20:57 +0700 Subject: [PATCH] Reduce pty flush wait --- src/cook/pty.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cook/pty.rs b/src/cook/pty.rs index aec8869b0..1371cbddf 100644 --- a/src/cook/pty.rs +++ b/src/cook/pty.rs @@ -62,9 +62,8 @@ pub fn flush_pty(logger: &mut PtyOut) { }; // Not sure if flush actually working let _ = pty.flush(); - std::thread::sleep(Duration::from_millis(100)); + std::thread::sleep(Duration::from_millis(10)); let _ = file.flush(); - std::thread::sleep(Duration::from_millis(100)); } pub fn spawn_to_pipe(command: &mut Command, stdout_pipe: &PtyOut) -> Result {