aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImayhaveborkedit <[email protected]>2019-08-27 19:53:44 -0400
committerGitHub <[email protected]>2019-08-27 19:53:44 -0400
commitbc147ea37b291f9e956a6ae808dc9078de384dc2 (patch)
tree759ec3d748835efae8de507ed34e10bef3cc507a
parentUse X-Ratelimit-Reset-After header by default. (diff)
downloaddiscord.py-bc147ea37b291f9e956a6ae808dc9078de384dc2.tar.xz
discord.py-bc147ea37b291f9e956a6ae808dc9078de384dc2.zip
Fix FFmpegAudio._process not existing if _spawn_process raises
-rw-r--r--discord/player.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/player.py b/discord/player.py
index dbe06de8..72758405 100644
--- a/discord/player.py
+++ b/discord/player.py
@@ -122,6 +122,8 @@ class FFmpegAudio(AudioSource):
"""
def __init__(self, source, *, executable='ffmpeg', args, **subprocess_kwargs):
+ self._process = self._stdout = None
+
args = [executable, *args]
kwargs = {'stdout': subprocess.PIPE}
kwargs.update(subprocess_kwargs)