Update server/RdtClient.Service/Services/TorrentRunner.cs

Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
This commit is contained in:
Roger Far 2025-05-18 11:11:17 -06:00 committed by GitHub
parent e17c8c5c1a
commit 6ec3b1072b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,10 @@ public class TorrentRunner(ILogger<TorrentRunner> 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))