From f2fff3ce762480269ccc738bb6c86ac667554506 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Thu, 6 Jul 2023 22:21:59 -0400 Subject: [PATCH] Send `Message::Eof` after writing archive tail --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index fd860cf..790b2a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -121,5 +121,6 @@ pub fn par_stream_archive( })?; let mut writer = writer.into_inner().map_err(|_| Error::MutexError)?; writer.write_all(&[0; 8])?; + sender.send(Message::Eof).map_err(|_| Error::SenderError)?; Ok(()) }