Check timeout automatically

This commit is contained in:
DarthSim
2022-06-23 17:23:04 +06:00
parent d80a203390
commit a44e8dc94b
8 changed files with 9 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ func trim(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions,
if err := img.Trim(po.Trim.Threshold, po.Trim.Smart, po.Trim.Color, po.Trim.EqualHor, po.Trim.EqualVer); err != nil {
return err
}
if err := copyMemoryAndCheckTimeout(pctx.ctx, img); err != nil {
if err := img.CopyMemory(); err != nil {
return err
}