diff options
| author | Khazhismel Kumykov <[email protected]> | 2016-02-24 22:58:47 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-03-02 23:25:20 -0500 |
| commit | ef57873f80b68c32aea3cca635d05f9ff2aff29f (patch) | |
| tree | f1d2aa1f73dfee6951e4d5f05e530d529a7cacd8 | |
| parent | Fix bug where playlist bot attempts to process replies in PMs. (diff) | |
| download | discord.py-ef57873f80b68c32aea3cca635d05f9ff2aff29f.tar.xz discord.py-ef57873f80b68c32aea3cca635d05f9ff2aff29f.zip | |
Clean up zombies
self.process.communicate(timeout=0.100) will block
zombies probably would be cleaned up anyways but in a non deterministic fashion by the garage collector
| -rw-r--r-- | discord/voice_client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py index 5b129e70..fbe3d492 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -124,6 +124,8 @@ class ProcessPlayer(StreamPlayer): def stop(self): self.process.kill() + if self.process.poll() is None: + self.process.communicate(timeout=0.100) super().stop() class VoiceClient: |