Browse Source

add library monitor error handling

Luke Pulverenti 8 years ago
parent
commit
d57a50af3b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Emby.Server.Core/IO/LibraryMonitor.cs

+ 9 - 0
Emby.Server.Core/IO/LibraryMonitor.cs

@@ -294,6 +294,15 @@ namespace Emby.Server.Core.IO
                 return;
                 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
             // Already being watched
             if (_fileSystemWatchers.ContainsKey(path))
             if (_fileSystemWatchers.ContainsKey(path))
             {
             {