From 279bd6d82d97cb2c5816335344c01a1ad60749a9 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Mon, 24 Feb 2025 18:32:44 +0200 Subject: [PATCH] Fix Deluge timeout not being configurable (#68) --- code/Executable/DependencyInjection/MainDI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Executable/DependencyInjection/MainDI.cs b/code/Executable/DependencyInjection/MainDI.cs index 078a9a35..1631be33 100644 --- a/code/Executable/DependencyInjection/MainDI.cs +++ b/code/Executable/DependencyInjection/MainDI.cs @@ -62,7 +62,7 @@ public static class MainDI services .AddHttpClient(nameof(DelugeService), x => { - x.Timeout = TimeSpan.FromSeconds(5); + x.Timeout = TimeSpan.FromSeconds(config.Timeout); }) .ConfigurePrimaryHttpMessageHandler(_ => {