浏览代码

add library monitor error handling

Luke Pulverenti 8 年之前
父节点
当前提交
b0a14a191a
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs

+ 8 - 1
MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs

@@ -106,7 +106,14 @@ namespace MediaBrowser.Server.Implementations.IO
 
             if (refreshPath)
             {
-                ReportFileSystemChanged(path);
+                try
+                {
+                    ReportFileSystemChanged(path);
+                }
+                catch (Exception ex)
+                {
+                    Logger.ErrorException("Error in ReportFileSystemChanged for {0}", ex, path);
+                }
             }
         }