Skip to content

The Free Software Media System - Server Backend & API

add image processor delay

Luke Pulverenti9db6f610c655
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index 970b463cd1..231bfa2b47 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/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