From 1ae81899a6426e11cc0087264004c2f0e3673c56 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 23 Jun 2022 13:39:09 +0200 Subject: [PATCH] Include successful replies in conn event stream --- src/euph/conn.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/euph/conn.rs b/src/euph/conn.rs index 4600781..dd99910 100644 --- a/src/euph/conn.rs +++ b/src/euph/conn.rs @@ -251,12 +251,11 @@ impl State { self.replies.complete(id, packet.content.clone()); } - // Shovel events into self.packet_tx, assuming that no event ever - // errors. Events with errors are simply ignored. + // Shovel events and successful replies into self.packet_tx. Assumes + // that no even ever errors and that erroring replies are not + // interesting. if let Ok(data) = &packet.content { - if data.is_event() { - self.packet_tx.send(data.clone())?; - } + self.packet_tx.send(data.clone())?; } // Play a game of table tennis