diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/voice/streamer.rs | 8 |
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, |