From 3d67a4e2cd33b17747c7499e07d0a0e05fe73253 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Tue, 20 Feb 2018 16:31:49 +0000 Subject: Drop implementation for ffmpeg container --- src/voice/streamer.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/voice/streamer.rs b/src/voice/streamer.rs index a0334f3..bee23ed 100644 --- a/src/voice/streamer.rs +++ b/src/voice/streamer.rs @@ -16,6 +16,14 @@ impl Read for ChildContainer { } } +impl Drop for ChildContainer { + fn drop (&mut self) { + if let Err(e) = self.0.wait() { + debug!("[Voice] Error awaiting child process: {:?}", e); + } + } +} + struct InputSource { stereo: bool, reader: R, -- cgit v1.2.3