diff --git a/src/consumer/engine.rs b/src/consumer/engine.rs index b9979a5a..08eb7a4e 100644 --- a/src/consumer/engine.rs +++ b/src/consumer/engine.rs @@ -103,6 +103,9 @@ impl ConsumerEngine { let r = event_tx.send(mapper(Some(msg))).await; if let Err(err) = r { log::error!("Error sending event to channel - {err}"); + if err.is_disconnected() { + break; + } } } let send_end_res = event_tx.send(mapper(None)).await;