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
This commit is contained in:
Khazhismel Kumykov 2016-02-24 22:58:47 -05:00 committed by Rapptz
parent 8c4f928684
commit ef57873f80

View File

@ -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: