mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 04:17:16 +00:00
Fix self._process not existing during cleanup() in case of error
This commit is contained in:
parent
89f9009a28
commit
ceb82ecc7b
@ -156,6 +156,7 @@ class FFmpegPCMAudio(AudioSource):
|
|||||||
|
|
||||||
args.append('pipe:1')
|
args.append('pipe:1')
|
||||||
|
|
||||||
|
self._process = None
|
||||||
try:
|
try:
|
||||||
self._process = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr)
|
self._process = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr)
|
||||||
self._stdout = self._process.stdout
|
self._stdout = self._process.stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user