From 6ec3b1072be34dca8251395d87530c6234f1892a Mon Sep 17 00:00:00 2001 From: Roger Far <1142915+rogerfar@users.noreply.github.com> Date: Sun, 18 May 2025 11:11:17 -0600 Subject: [PATCH] Update server/RdtClient.Service/Services/TorrentRunner.cs Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com> --- server/RdtClient.Service/Services/TorrentRunner.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index 30f1f10..e7ba302 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -81,6 +81,10 @@ public class TorrentRunner(ILogger logger, Torrents torrents, Dow } var settingUnpackLimit = Settings.Get.General.UnpackLimit; + if (settingUnpackLimit < 0) + { + settingUnpackLimit = 0; + } var settingDownloadPath = Settings.Get.DownloadClient.DownloadPath; if (String.IsNullOrWhiteSpace(settingDownloadPath))