mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[V3 Audio] Bump timeout connecting to Lavalink (#1474)
* [V3 Audio] Bump timeout connecting to Lavalink Lavalink server can take 20-35 seconds to start, bumped to 50 seconds for good measure. * Update audio.py Added proper timeout * Update __init__.py Removed old timeout
This commit is contained in:
parent
10d01df7dd
commit
a813260717
@ -50,7 +50,6 @@ async def setup(bot: commands.Bot):
|
|||||||
await start_lavalink_server(bot.loop)
|
await start_lavalink_server(bot.loop)
|
||||||
|
|
||||||
async def _finish():
|
async def _finish():
|
||||||
await asyncio.sleep(10)
|
|
||||||
await cog.init_config()
|
await cog.init_config()
|
||||||
bot.add_cog(cog)
|
bot.add_cog(cog)
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class Audio:
|
|||||||
ws_port = await self.config.ws_port()
|
ws_port = await self.config.ws_port()
|
||||||
|
|
||||||
await lavalink.initialize(
|
await lavalink.initialize(
|
||||||
bot=self.bot, host=host, password=password, rest_port=rest_port, ws_port=ws_port
|
bot=self.bot, host=host, password=password, rest_port=rest_port, ws_port=ws_port, timeout=60
|
||||||
)
|
)
|
||||||
lavalink.register_event_listener(self.event_handler)
|
lavalink.register_event_listener(self.event_handler)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user