The Free Software Media System - Server Backend & API
ease up on directory watcher delay
Luke Pulverentif6cdca1f07ed
diff --git a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.csindex ffb3512220..b24cc20635 100644--- a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs+++ b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs@@ -68,7 +68,8 @@ namespace MediaBrowser.Server.Implementations.IO{// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.// Seeing long delays in some situations, especially over the network.- await Task.Delay(40000).ConfigureAwait(false);+ // Seeing delays up to 40 seconds, but not going to ignore changes for that long.+ await Task.Delay(20000).ConfigureAwait(false);string val;_tempIgnoredPaths.TryRemove(path, out val);