mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix potential audio delay during source cleanup
This commit is contained in:
@ -694,8 +694,8 @@ class AudioPlayer(threading.Thread):
|
||||
self._current_error = exc
|
||||
self.stop()
|
||||
finally:
|
||||
self.source.cleanup()
|
||||
self._call_after()
|
||||
self.source.cleanup()
|
||||
|
||||
def _call_after(self) -> None:
|
||||
error = self._current_error
|
||||
|
Reference in New Issue
Block a user