mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Fix Piped Audio Input Ends Prematurely
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
70b19c8695
commit
a8882f7cb2
@ -210,7 +210,8 @@ class FFmpegAudio(AudioSource):
|
||||
# arbitrarily large read size
|
||||
data = source.read(8192)
|
||||
if not data:
|
||||
self._process.terminate()
|
||||
if self._stdin is not None:
|
||||
self._stdin.close()
|
||||
return
|
||||
try:
|
||||
if self._stdin is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user