diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-08 15:37:16 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-08 15:37:16 -0400 |
| commit | 1cffa277a47e0614c33f039500658c98e3a1dc2b (patch) | |
| tree | c62d023692fa7e6916bec27166f81981193c95c4 | |
| parent | 59d3b8853d01973bb72cc42913789f71f5a259f3 (diff) | |
add library monitor error handling
| -rw-r--r-- | Emby.Server.Core/IO/LibraryMonitor.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Emby.Server.Core/IO/LibraryMonitor.cs b/Emby.Server.Core/IO/LibraryMonitor.cs index 0f6a2e9a2..8af826c88 100644 --- a/Emby.Server.Core/IO/LibraryMonitor.cs +++ b/Emby.Server.Core/IO/LibraryMonitor.cs @@ -294,6 +294,15 @@ namespace Emby.Server.Core.IO return; } + if (_environmentInfo.OperatingSystem != MediaBrowser.Model.System.OperatingSystem.Windows) + { + if (path.StartsWith("\\\\", StringComparison.OrdinalIgnoreCase) || path.StartsWith("smb://", StringComparison.OrdinalIgnoreCase)) + { + // not supported + return; + } + } + // Already being watched if (_fileSystemWatchers.ContainsKey(path)) { |
