mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 18:29:52 +00:00
Fix potential audio delay during source cleanup
This commit is contained in:
parent
6788ec2533
commit
c403fb49d1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user