mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
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):
|
||||
self.process.kill()
|
||||
if self.process.poll() is None:
|
||||
self.process.communicate(timeout=0.100)
|
||||
super().stop()
|
||||
|
||||
class VoiceClient:
|
||||
|
Loading…
x
Reference in New Issue
Block a user