2
0
Эх сурвалжийг харах

add image processor delay

Luke Pulverenti 10 жил өмнө
parent
commit
9db6f610c6

+ 3 - 0
Emby.Drawing/ImageProcessor.cs

@@ -227,6 +227,9 @@ namespace Emby.Drawing
                     imageProcessingLockTaken = true;
 
                     _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