From 77efc4cc401b4d79079084ff406b95812ff7666c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 7 May 2023 09:52:35 -0700 Subject: [PATCH] Fixed: Timeout when getting root folder details --- src/NzbDrone.Core/RootFolders/RootFolderService.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/RootFolders/RootFolderService.cs b/src/NzbDrone.Core/RootFolders/RootFolderService.cs index 63700f87d..c3ddd3ba8 100644 --- a/src/NzbDrone.Core/RootFolders/RootFolderService.cs +++ b/src/NzbDrone.Core/RootFolders/RootFolderService.cs @@ -198,8 +198,8 @@ namespace NzbDrone.Core.RootFolders private void GetDetails(RootFolder rootFolder, Dictionary 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); } } }