aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyle Simpson <[email protected]>2018-02-20 16:31:49 +0000
committerZeyla Hellyer <[email protected]>2018-02-20 08:31:49 -0800
commit3d67a4e2cd33b17747c7499e07d0a0e05fe73253 (patch)
treecec4ea231cb61f452a53dc192dd03fda5e72ccb6 /src
parentAdd documentation to `EventHandler` (diff)
downloadserenity-3d67a4e2cd33b17747c7499e07d0a0e05fe73253.tar.xz
serenity-3d67a4e2cd33b17747c7499e07d0a0e05fe73253.zip
Drop implementation for ffmpeg container
Diffstat (limited to 'src')
-rw-r--r--src/voice/streamer.rs8
1 files changed, 8 insertions, 0 deletions
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<R: Read + Send + 'static> {
stereo: bool,
reader: R,