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:
parent
8c4f928684
commit
ef57873f80
@ -124,6 +124,8 @@ class ProcessPlayer(StreamPlayer):
|
|||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.process.kill()
|
self.process.kill()
|
||||||
|
if self.process.poll() is None:
|
||||||
|
self.process.communicate(timeout=0.100)
|
||||||
super().stop()
|
super().stop()
|
||||||
|
|
||||||
class VoiceClient:
|
class VoiceClient:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user