stop cache tile generation early on error

We didn't stop tile calculation as early as we could on error.

See https://github.com/libvips/libvips/pull/2424
This commit is contained in:
John Cupitt 2021-09-05 12:46:11 +01:00
parent affc2400ed
commit e7889ff8e1

View File

@ -632,7 +632,8 @@ vips_tile_cache_gen( VipsRegion *or,
*/
work = vips_tile_cache_ref( cache, r );
while( work ) {
while( work &&
!*stop ) {
/* Search for data tiles: easy, we can just paste those in.
*/
for(;;) {