bug: await VoiceClient.disconnect()
raise OSError: [WinError 10038]
when passing a str that represent a non file-like object
#846
Labels
unconfirmed bug
Something might not be working
Summary
When using a
FFmpegPCMAudio
audio source with asource
that represent a non file-like object (e.g a url) and when disconnecting from aVoiceChannel
you get anOSError
.This bug was found while trying to test more
VoiceClient.is_playing()
continue to beTrue
even when the audio stops #845Reproduction Steps
Connect to a
VoiceChannel
Start playing something using
FFmpegPCMAudio
as audio source with asource
that does't represent a file-like objectDisconnect from the
VoiceChannel
usingawait VoiceClient.disconnect()
Minimal Reproducible Code
Expected Results
The bot should disconnect from the VoiceChannel succesfully without raising any error
Actual Results
The bot raise an error, full traceback below:
Intents
Irrelevants
System Information
Checklist
Additional Context
I think that the problem is related to the stream of bytes coming from FFmpeg or some bug/problem occurred while trying to stop the stream
The text was updated successfully, but these errors were encountered: