From db607a618b06c7ca31f7400cbfe9fc38455ad3a9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 24 Jun 2013 21:32:21 -0400 Subject: [PATCH] fixes #353 - Path not found stopping library scan --- .../Library/LibraryManager.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 0465cb5c3..3e6370868 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -537,13 +537,16 @@ namespace MediaBrowser.Server.Implementations.Library { try { - var item = ResolvePath(f, parent) as T; - - if (item != null) + if (f.Exists) { - lock (list) + var item = ResolvePath(f, parent) as T; + + if (item != null) { - list.Add(item); + lock (list) + { + list.Add(item); + } } } }