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-17 00:14:53 -0400 |
| commit | b0a14a191a19bc990095d28b05a908d11d141b5c (patch) | |
| tree | 6aad44ec6a61f0821907e33232109928283a6241 /MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | |
| parent | b06d70e88296b19d70662aed507e6a413125f707 (diff) | |
add library monitor error handling
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs')
| -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 c87d10ef4..15b4a0d66 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); + } } } |
