aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/IO/LibraryMonitor.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-05-08 14:08:21 -0400
committerGitHub <noreply@github.com>2017-05-08 14:08:21 -0400
commitc8c4eb3ab5ff88aa7f756c096b4f896e0dae68f7 (patch)
treedc1178b5e142b6770be17e5e5389fa495e45dd0e /Emby.Server.Core/IO/LibraryMonitor.cs
parent69d17b0e45e7287842b77e12bfd3bd3a683b6a3a (diff)
parentff03a018530c41fb5de4dd6932bd86d062d3f7ae (diff)
Merge pull request #2624 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Core/IO/LibraryMonitor.cs')
-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))
{