소스 검색

add image processor delay

Luke Pulverenti 10 년 전
부모
커밋
9db6f610c6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Emby.Drawing/ImageProcessor.cs

+ 3 - 0
Emby.Drawing/ImageProcessor.cs

@@ -227,6 +227,9 @@ namespace Emby.Drawing
                     imageProcessingLockTaken = true;
                     imageProcessingLockTaken = true;
 
 
                     _imageEncoder.EncodeImage(originalImagePath, cacheFilePath, newWidth, newHeight, quality, options);
                     _imageEncoder.EncodeImage(originalImagePath, cacheFilePath, newWidth, newHeight, quality, options);
+
+                    // ImageMagick doesn't seem to always release it right away
+                    await Task.Delay(100).ConfigureAwait(false);
                 }
                 }
             }
             }
             finally
             finally