#251 - New Content not added (during other tasks?)

This commit is contained in:
Luke Pulverenti 2013-05-14 08:59:00 -04:00
parent 1ff8df292e
commit 4111343094

View File

@ -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));