From 1cffa277a47e0614c33f039500658c98e3a1dc2b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 8 May 2017 15:37:16 -0400 Subject: [PATCH] add library monitor error handling --- Emby.Server.Core/IO/LibraryMonitor.cs | 9 +++++++++ 1 file changed, 9 insertions(+) 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)) {