Re-add write-wait
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

The wait on login is no longer necessary, but the wait for write is
still necessary for communication.
This commit is contained in:
Blizzard Finnegan 2023-06-23 13:32:42 -04:00
parent 7f8d0a8397
commit 9bd3fc067d
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E

View file

@ -129,7 +129,7 @@ impl TTY{
let output = self.tty.write_all(COMMAND_MAP.get(&command).unwrap().as_bytes()).is_ok();
self.last = command;
_ = self.tty.flush();
//std::thread::sleep(std::time::Duration::from_millis(500));
std::thread::sleep(std::time::Duration::from_millis(500));
return output;
}