The Free Software Media System - Server Backend & API
override buffer size only for windows
Luke Pulverenti2f40910c9042
diff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.csindex edc6b14ab6..49cf4c1620 100644--- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs+++ b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs@@ -275,10 +275,14 @@ namespace MediaBrowser.Server.Implementations.IO{var newWatcher = new FileSystemWatcher(path, "*"){- IncludeSubdirectories = true,- InternalBufferSize = 32767+ IncludeSubdirectories = true};+ if (Environment.OSVersion.Platform == PlatformID.Win32NT)+ {+ newWatcher.InternalBufferSize = 32767;+ }+newWatcher.NotifyFilter = NotifyFilters.CreationTime |NotifyFilters.DirectoryName |NotifyFilters.FileName |