[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:
Wyn 2018-04-02 19:36:26 -04:00 committed by Will
parent 10d01df7dd
commit a813260717
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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)