The Free Software Media System - Server Backend & API
#251 - New Content not added (during other tasks?)
Luke Pulverenti4111343094bf
diff --git a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.csindex b9b2b560b0..7c362a9199 100644--- a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs+++ b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs@@ -369,7 +369,7 @@ namespace MediaBrowser.Server.Implementations.IOlock (_timerLock){// Extend the timer as long as any of the paths are still being written to.- if (_affectedPaths.Any(p => IsFileLocked(p.Key)))+ if (_affectedPaths.Any(p => !FileSystem.GetFileSystemInfo(p.Key).Attributes.HasFlag(FileAttributes.ReadOnly) && IsFileLocked(p.Key))){Logger.Info("Timer extended.");_updateTimer.Change(TimeSpan.FromSeconds(ConfigurationManager.Configuration.FileWatcherDelay), TimeSpan.FromMilliseconds(-1));