Update Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionPathsTask.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
JPVenson 2023-05-02 14:26:55 +02:00 committed by GitHub
parent 0ed4fd5759
commit 8b6fca59a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ public class CleanupCollectionPathsTask : IScheduledTask
var collection = collections[index];
_logger.LogDebug("Check Boxset {CollectionName}", collection.Name);
var itemsToRemove = new List<LinkedChild>();
foreach (var collectionLinkedChild in collection.LinkedChildren.ToArray())
foreach (var collectionLinkedChild in collection.LinkedChildren)
{
if (!File.Exists(collectionLinkedChild.Path))
{