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:
Chovin
2024-12-24 13:08:49 +10:00
committed by GitHub
parent fdaa869130
commit 1f48919005
2 changed files with 22 additions and 3 deletions

View File

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