aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <[email protected]>2017-11-21 17:51:34 -0500
committerGitHub <[email protected]>2017-11-21 17:51:34 -0500
commitceb82ecc7b89ccdb2f01a7c90cf2156618bf9fcc (patch)
tree028ff2d8e054cbc2d4e112b9bbb5ecabce926ad0
parent[commands] Fix minor spelling mistake (diff)
downloaddiscord.py-ceb82ecc7b89ccdb2f01a7c90cf2156618bf9fcc.tar.xz
discord.py-ceb82ecc7b89ccdb2f01a7c90cf2156618bf9fcc.zip
Fix self._process not existing during cleanup() in case of error
-rw-r--r--discord/player.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/player.py b/discord/player.py
index f8afdfab..c1337de8 100644
--- a/discord/player.py
+++ b/discord/player.py
@@ -156,6 +156,7 @@ class FFmpegPCMAudio(AudioSource):
args.append('pipe:1')
+ self._process = None
try:
self._process = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr)
self._stdout = self._process.stdout