Skip to content

The Free Software Media System - Server Backend & API

add library monitor error handling

Luke Pulverentid57a50af3b3a
diff --git a/Emby.Server.Core/IO/LibraryMonitor.cs b/Emby.Server.Core/IO/LibraryMonitor.cs
index 0f6a2e9a2c..8af826c881 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))
{