mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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…
x
Reference in New Issue
Block a user