mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-22 10:06:40 +00:00
don't try to get non-cached children when offline
This commit is contained in:
@@ -314,7 +314,15 @@ namespace MediaBrowser.Controller.Entities
|
||||
isDirectory = true;
|
||||
}
|
||||
|
||||
pathInfo = pathInfo ?? (isDirectory ? new DirectoryInfo(path) : FileSystem.GetFileSystemInfo(path));
|
||||
try
|
||||
{
|
||||
pathInfo = pathInfo ?? (isDirectory ? new DirectoryInfo(path) : FileSystem.GetFileSystemInfo(path));
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
IsOffline = true;
|
||||
throw;
|
||||
}
|
||||
|
||||
if (pathInfo == null || !pathInfo.Exists)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user