From a5fe8a8568f12f1eab483ca779d1c5449d4a027d Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Mon, 18 Nov 2024 21:38:58 -0800 Subject: [PATCH] Use normal stream terminating mechanism --- src/stream/unix.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stream/unix.rs b/src/stream/unix.rs index 538ae9de..c76d36f3 100644 --- a/src/stream/unix.rs +++ b/src/stream/unix.rs @@ -58,6 +58,9 @@ impl futures::Stream for PacketStream Ok(Err(e)), }, ) { + Ok(Ok(Err(Error::NoMorePackets))) => { + return Poll::Ready(None); + } Ok(result) => { return Poll::Ready(Some(result?)); }