Skip to content

Commit

Permalink
Drop implementation for ffmpeg container
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMcFelix authored and Zeyla Hellyer committed Feb 20, 2018
1 parent 80dfcb0 commit 3d67a4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/voice/streamer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3d67a4e

Please sign in to comment.