소스 검색

adjust fileshare

Luke Pulverenti 9 년 전
부모
커밋
7d36543318
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      MediaBrowser.Api/Images/ImageService.cs

+ 5 - 1
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
             });
         }