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(_) => {} } } }