mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix possible FFmpegAudio AttributeError in __del__
This commit is contained in:
1 parent
97ae6409b0
commit
dacf3cfe86
1 file changed
+2
-1
+2
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user