浏览代码

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
JPVenson 2 年之前
父节点
当前提交
8b6fca59a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionPathsTask.cs

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