Selaa lähdekoodia

add image processor delay

Luke Pulverenti 10 vuotta sitten
vanhempi
sitoutus
9db6f610c6
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      Emby.Drawing/ImageProcessor.cs

+ 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