aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-08 14:05:47 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-08 14:05:47 -0400
commitd57a50af3b3af5e389c1aff1bea34a1f2ada299e (patch)
treeb25c6bcf04a9a4bff7aaf471a33803a3917979d3
parent1dab9a60f4a2115f15df14b235c5ca64203be811 (diff)
add library monitor error handling
-rw-r--r--Emby.Server.Core/IO/LibraryMonitor.cs9
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))
{