diff options
| author | Kyle Simpson <[email protected]> | 2018-04-26 05:41:16 +0100 |
|---|---|---|
| committer | zeyla <[email protected]> | 2018-04-25 21:41:16 -0700 |
| commit | e546fa2a32a05a9bbc351b9aa789233ee71e88f0 (patch) | |
| tree | 86335788f30f52bcf8de6ea9a4ae3f0532ef0b23 /src | |
| parent | Fix "Guild Member Chunk" deserialization (diff) | |
| download | serenity-e546fa2a32a05a9bbc351b9aa789233ee71e88f0.tar.xz serenity-e546fa2a32a05a9bbc351b9aa789233ee71e88f0.zip | |
Fix voice hang on `.stop()`
Turns out `wait` was a little *too* cooperative. Holdover until we
change to real ffmpeg bindings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/voice/streamer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/streamer.rs b/src/voice/streamer.rs index 0f0e9ef..faf467c 100644 --- a/src/voice/streamer.rs +++ b/src/voice/streamer.rs @@ -35,7 +35,7 @@ impl Read for ChildContainer { impl Drop for ChildContainer { fn drop (&mut self) { - if let Err(e) = self.0.wait() { + if let Err(e) = self.0.kill() { debug!("[Voice] Error awaiting child process: {:?}", e); } } |