Release the stdio lock before chunking

This commit is contained in:
Olivier 'reivilibre' 2021-11-16 07:34:04 +00:00
parent c0f4f271ab
commit 066292b6fe
1 changed files with 4 additions and 0 deletions

View File

@ -214,7 +214,11 @@ pub fn handler_stdio() -> anyhow::Result<()> {
}
"chunk" => {
info!("Chunking.");
drop(read);
drop(write);
chunking_stdio()?;
read = stdin.lock();
write = stdout.lock();
}
"exit" => {
write_message(&mut write, &"exit")?;