Fixed: Timeout when getting root folder details

This commit is contained in:
Mark McDowall 2023-05-07 09:52:35 -07:00 committed by GitHub
parent 453891e620
commit 77efc4cc40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -198,8 +198,8 @@ namespace NzbDrone.Core.RootFolders
private void GetDetails(RootFolder rootFolder, Dictionary<int, string> seriesPaths, bool timeout)
{
// Task.Run(() =>
// {
Task.Run(() =>
{
if (_diskProvider.FolderExists(rootFolder.Path))
{
rootFolder.Accessible = true;
@ -207,8 +207,7 @@ namespace NzbDrone.Core.RootFolders
rootFolder.TotalSpace = _diskProvider.GetTotalSize(rootFolder.Path);
rootFolder.UnmappedFolders = GetUnmappedFolders(rootFolder.Path, seriesPaths);
}
// }).Wait(timeout ? 5000 : -1);
}).Wait(timeout ? 5000 : -1);
}
}
}