From b531735b0ca34680471eec81a11370837c802fc2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 May 2013 13:46:35 -0400 Subject: changed ActualChildren to a ConcurrentDictionary to allow for easy add/removes --- MediaBrowser.Controller/Entities/CollectionFolder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs') diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs index 42c112752..67692273d 100644 --- a/MediaBrowser.Controller/Entities/CollectionFolder.cs +++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs @@ -69,7 +69,7 @@ namespace MediaBrowser.Controller.Entities /// Our children are actually just references to the ones in the physical root... /// /// The actual children. - protected override ConcurrentBag ActualChildren + protected override ConcurrentDictionary ActualChildren { get { @@ -92,7 +92,7 @@ namespace MediaBrowser.Controller.Entities .Where(i => folderIds.Contains(i.Id)) .SelectMany(c => c.Children); - return new ConcurrentBag(ourChildren); + return new ConcurrentDictionary(ourChildren.ToDictionary(i => i.Id)); } } } -- cgit v1.2.3