don't try to get non-cached children when offline

This commit is contained in:
Luke Pulverenti
2013-07-05 14:23:41 -04:00
parent 6b84095add
commit deeb85f296
2 changed files with 12 additions and 2 deletions

View File

@@ -646,7 +646,7 @@ namespace MediaBrowser.Controller.Entities
cancellationToken.ThrowIfCancellationRequested();
//get the current valid children from filesystem (or wherever)
var nonCachedChildren = GetNonCachedChildren();
var nonCachedChildren = IsOffline ? new BaseItem[] { } : GetNonCachedChildren();
if (nonCachedChildren == null) return; //nothing to validate
@@ -722,6 +722,8 @@ namespace MediaBrowser.Controller.Entities
else
{
item.IsOffline = true;
validChildren.Add(new Tuple<BaseItem, bool>(item, false));
}
}