fixes #353 - Path not found stopping library scan

This commit is contained in:
Luke Pulverenti 2013-06-24 21:32:21 -04:00
parent 92cd71143d
commit db607a618b

View File

@ -537,13 +537,16 @@ namespace MediaBrowser.Server.Implementations.Library
{ {
try try
{ {
var item = ResolvePath(f, parent) as T; if (f.Exists)
if (item != null)
{ {
lock (list) var item = ResolvePath(f, parent) as T;
if (item != null)
{ {
list.Add(item); lock (list)
{
list.Add(item);
}
} }
} }
} }