aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-12 23:54:45 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-12 23:54:45 -0500
commit7d36543318909b318bb73086d27fbfc169fc01c1 (patch)
tree9f642908d97e2c6a334be1bc7a983e444e7aa555
parentd78e2764d81083be26d0b51873dc689d6d8f0117 (diff)
adjust fileshare
-rw-r--r--MediaBrowser.Api/Images/ImageService.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs
index 957d73c2d..7122c8fc1 100644
--- a/MediaBrowser.Api/Images/ImageService.cs
+++ b/MediaBrowser.Api/Images/ImageService.cs
@@ -637,7 +637,11 @@ namespace MediaBrowser.Api.Images
ResponseHeaders = headers,
ContentType = imageResult.Item2,
IsHeadRequest = isHeadRequest,
- Path = imageResult.Item1
+ Path = imageResult.Item1,
+
+ // Sometimes imagemagick keeps a hold on the file briefly even after it's done writing to it.
+ // I'd rather do this than add a delay after saving the file
+ FileShare = FileShare.ReadWrite
});
}