diff --git a/datman/src/remote/backup_source_responder.rs b/datman/src/remote/backup_source_responder.rs index 26fd1a2..f9ca2cc 100644 --- a/datman/src/remote/backup_source_responder.rs +++ b/datman/src/remote/backup_source_responder.rs @@ -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")?;