mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
Add a separate timeout for Lavalink download (#6461)
Co-authored-by: chovin <chovin@users.noreply.github.com> Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -56,7 +56,9 @@ class LavalinkTasks(MixinMeta, metaclass=CompositeMetaClass):
|
||||
password = configs["yaml"]["lavalink"]["server"]["password"]
|
||||
secured = False
|
||||
# Make this timeout customizable for lower powered machines?
|
||||
self.managed_node_controller = ServerManager(self.config, timeout=60, cog=self)
|
||||
self.managed_node_controller = ServerManager(
|
||||
self.config, timeout=60, download_timeout=60 * 3, cog=self
|
||||
)
|
||||
try:
|
||||
await self.managed_node_controller.start(java_exec)
|
||||
# timeout is the same as ServerManager.timeout -
|
||||
|
||||
Reference in New Issue
Block a user