delete using id in RemoveChildren

This commit is contained in:
Luke Pulverenti 2014-02-20 00:37:37 -05:00
parent 13e4b2a6a7
commit 160d142088

View File

@ -137,9 +137,11 @@ namespace MediaBrowser.Controller.Entities
protected void RemoveChildrenInternal(IEnumerable<BaseItem> children)
{
var ids = children.Select(i => i.Id).ToList();
lock (_childrenSyncLock)
{
_children = ActualChildren.Except(children).ToList();
_children = ActualChildren.Where(i => !ids.Contains(i.Id)).ToList();
}
}