diff --git a/modules/capture/src/main.rs b/modules/capture/src/main.rs index 645de6bd..8d531816 100644 --- a/modules/capture/src/main.rs +++ b/modules/capture/src/main.rs @@ -508,8 +508,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(_) => {} } } }