From 19c79879462062f48a6575b0b86293f53ca58999 Mon Sep 17 00:00:00 2001 From: "dime-hermes[bot]" <349604419+dime-hermes[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:15:27 +0100 Subject: [PATCH] capture: fix irrefutable if let pattern in Feed::drop The Drop impl used an irrefutable that only handled the Cpal variant, ignoring the Passive variant on Linux. Use an explicit match to handle both. Agent-Session: hermes-1104-10 --- modules/capture/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/capture/src/main.rs b/modules/capture/src/main.rs index 5227bae0..d6d1fea3 100644 --- a/modules/capture/src/main.rs +++ b/modules/capture/src/main.rs @@ -483,8 +483,10 @@ impl Feed { impl Drop for Feed { fn drop(&mut self) { - if let Feed::Cpal { closing, .. } = self { - closing.store(true, Ordering::SeqCst); + match self { + Feed::Cpal { closing, .. } => closing.store(true, Ordering::SeqCst), + #[cfg(target_os = "linux")] + Feed::Passive(_) => {} } } }