diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-03 13:46:35 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-03 13:46:35 -0400 |
| commit | b531735b0ca34680471eec81a11370837c802fc2 (patch) | |
| tree | 6508ffc30d64c10d3741050813497a0f049e3db7 /MediaBrowser.Controller/Entities/CollectionFolder.cs | |
| parent | b5d9cb9fab64bc1d8153301e04424e9767a7b122 (diff) | |
changed ActualChildren to a ConcurrentDictionary to allow for easy add/removes
Diffstat (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/CollectionFolder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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... /// </summary> /// <value>The actual children.</value> - protected override ConcurrentBag<BaseItem> ActualChildren + protected override ConcurrentDictionary<Guid,BaseItem> ActualChildren { get { @@ -92,7 +92,7 @@ namespace MediaBrowser.Controller.Entities .Where(i => folderIds.Contains(i.Id)) .SelectMany(c => c.Children); - return new ConcurrentBag<BaseItem>(ourChildren); + return new ConcurrentDictionary<Guid,BaseItem>(ourChildren.ToDictionary(i => i.Id)); } } } |
