aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/IO
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-14 08:59:00 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-14 08:59:00 -0400
commit4111343094bfd85285bb2dc5b849946a9d2d8091 (patch)
tree0af59595a69e024430157d80dc9a33b699cdc25d /MediaBrowser.Server.Implementations/IO
parent1ff8df292e612d3f916eb1b69d048cf4ec6bad14 (diff)
#251 - New Content not added (during other tasks?)
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO')
-rw-r--r--MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs2
1 files changed, 1 insertions, 1 deletions
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));