mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-11-12 09:36:56 -05:00
Add check for processing recursive data structures (#14897)
This commit is contained in:
parent
d6cebf1e67
commit
cce6bf27e0
@ -337,6 +337,11 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (GetParents().Any(f => f.Id.Equals(Id)))
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException("Recursive datastructure detected abort processing this item.");
|
||||||
|
}
|
||||||
|
|
||||||
await ValidateChildrenInternal2(progress, recursive, refreshChildMetadata, allowRemoveRoot, refreshOptions, directoryService, cancellationToken).ConfigureAwait(false);
|
await ValidateChildrenInternal2(progress, recursive, refreshChildMetadata, allowRemoveRoot, refreshOptions, directoryService, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user