mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Audio] Add a wait time before auto disconnect (#5188)
* Update lavalink.py * Add comment Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
parent
80e7a70f9e
commit
43071e3fa2
@ -215,6 +215,8 @@ class LavalinkEvents(MixinMeta, metaclass=CompositeMetaClass):
|
||||
await self.config.guild_from_id(
|
||||
guild_id=guild_id
|
||||
).currently_auto_playing_in.set([])
|
||||
# let audio buffer run out on slower machines (GH-5158)
|
||||
await asyncio.sleep(2)
|
||||
await player.disconnect()
|
||||
self._ll_guild_updates.discard(guild.id)
|
||||
if status:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user