Browse Source

add library monitor error handling

Luke Pulverenti 8 years ago
parent
commit
b0a14a191a
1 changed files with 8 additions and 1 deletions
  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);
+                }
             }
         }