Browse Source

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
JPVenson 2 năm trước cách đây
mục cha
commit
8b6fca59a1

+ 1 - 1
Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionPathsTask.cs

@@ -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))
                 {