Reduce pty flush wait

This commit is contained in:
Wildan M 2026-01-29 13:20:57 +07:00
parent e80b936954
commit aa34351553
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -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<Child, Error> {