浏览代码

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

Luke Pulverenti 12 年之前
父节点
当前提交
4111343094
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

+ 1 - 1
MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

@@ -369,7 +369,7 @@ namespace MediaBrowser.Server.Implementations.IO
             lock (_timerLock)
             lock (_timerLock)
             {
             {
                 // Extend the timer as long as any of the paths are still being written to.
                 // 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.");
                     Logger.Info("Timer extended.");
                     _updateTimer.Change(TimeSpan.FromSeconds(ConfigurationManager.Configuration.FileWatcherDelay), TimeSpan.FromMilliseconds(-1));
                     _updateTimer.Change(TimeSpan.FromSeconds(ConfigurationManager.Configuration.FileWatcherDelay), TimeSpan.FromMilliseconds(-1));