mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-09 11:31:58 +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
|
return process
|
||||||
|
|
||||||
def _kill_process(self) -> None:
|
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:
|
if proc is MISSING:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user