From 4111343094bfd85285bb2dc5b849946a9d2d8091 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 14 May 2013 08:59:00 -0400 Subject: [PATCH] #251 - New Content not added (during other tasks?) --- MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs index b9b2b560b..7c362a919 100644 --- a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs +++ b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs @@ -369,7 +369,7 @@ namespace MediaBrowser.Server.Implementations.IO lock (_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));