delete using id in RemoveChildren
This commit is contained in:
parent
13e4b2a6a7
commit
160d142088
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user