reduce system info refreshing from dashboard

This commit is contained in:
Luke Pulverenti
2013-09-19 20:53:18 -04:00
parent 04468452ea
commit b7a8b92c00
32 changed files with 180 additions and 159 deletions

View File

@@ -99,7 +99,7 @@ namespace MediaBrowser.Controller.Entities
item.DateModified = DateTime.UtcNow;
}
_children.Add(item);
AddChildrenInternal(new[] { item });
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
@@ -728,10 +728,7 @@ namespace MediaBrowser.Controller.Entities
if (actualRemovals.Count > 0)
{
lock (ChildrenSyncLock)
{
_children = new ConcurrentBag<BaseItem>(_children.Except(actualRemovals));
}
RemoveChildrenInternal(actualRemovals);
}
await LibraryManager.CreateItems(newItems, cancellationToken).ConfigureAwait(false);