mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
Fixed: Timeout when getting root folder details
This commit is contained in:
parent
453891e620
commit
77efc4cc40
@ -198,8 +198,8 @@ public string GetBestRootFolderPath(string path)
|
||||
|
||||
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 @@ private void GetDetails(RootFolder rootFolder, Dictionary<int, string> seriesPat
|
||||
rootFolder.TotalSpace = _diskProvider.GetTotalSize(rootFolder.Path);
|
||||
rootFolder.UnmappedFolders = GetUnmappedFolders(rootFolder.Path, seriesPaths);
|
||||
}
|
||||
|
||||
// }).Wait(timeout ? 5000 : -1);
|
||||
}).Wait(timeout ? 5000 : -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user