diff options
| author | Imayhaveborkedit <[email protected]> | 2019-08-27 19:53:44 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-27 19:53:44 -0400 |
| commit | bc147ea37b291f9e956a6ae808dc9078de384dc2 (patch) | |
| tree | 759ec3d748835efae8de507ed34e10bef3cc507a | |
| parent | Use X-Ratelimit-Reset-After header by default. (diff) | |
| download | discord.py-bc147ea37b291f9e956a6ae808dc9078de384dc2.tar.xz discord.py-bc147ea37b291f9e956a6ae808dc9078de384dc2.zip | |
Fix FFmpegAudio._process not existing if _spawn_process raises
| -rw-r--r-- | discord/player.py | 2 |
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) |