From 7d36543318909b318bb73086d27fbfc169fc01c1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 12 Dec 2015 23:54:45 -0500 Subject: [PATCH] adjust fileshare --- MediaBrowser.Api/Images/ImageService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs index 957d73c2d3..7122c8fc12 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 }); }