mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Fix possible FFmpegAudio AttributeError in __del__
This commit is contained in:
parent
97ae6409b0
commit
dacf3cfe86
@ -212,7 +212,8 @@ class FFmpegAudio(AudioSource):
|
||||
return process
|
||||
|
||||
def _kill_process(self) -> None:
|
||||
proc = self._process
|
||||
# this function gets called in __del__ so instance attributes might not even exist
|
||||
proc = getattr(self, '_process', MISSING)
|
||||
if proc is MISSING:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user