diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-15 16:30:46 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-15 16:30:46 -0400 |
| commit | ab79129d0c9ea8026d95c8421b8e27f8661cc4c1 (patch) | |
| tree | 6be8abf42482759bbb50b4e3613acfda4af04e46 | |
| parent | c3355218594576457b3094dccea8e68896ef9cee (diff) | |
add library monitor error handling
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs index 80364bb55..8bb40a00e 100644 --- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs +++ b/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); + } } } |
