aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-01 14:24:27 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-01 14:24:27 -0400
commit3d40c5ba36c5e98954c2bc6073b4cf35cd42711a (patch)
treebe7328c6d1d2193041c9b3dd00ff40fd0f825599 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent900266eb54e3b13219eb21e6d22fb34ce28059ab (diff)
fixed xml providers running over and over
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs13
1 files changed, 5 insertions, 8 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index ebbefb239..27b71cc8a 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -527,16 +527,13 @@ namespace MediaBrowser.Server.Implementations.Library
{
try
{
- if (f.Exists)
- {
- var item = ResolvePath(f, parent) as T;
+ var item = ResolvePath(f, parent) as T;
- if (item != null)
+ if (item != null)
+ {
+ lock (list)
{
- lock (list)
- {
- list.Add(item);
- }
+ list.Add(item);
}
}
}