Browse Source
Fix Piped Audio Input Ends Prematurely
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
pull/9437/head
kairi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
discord/player.py
|
|
@ -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: |
|
|
|