official/regenerate_thumbnails - added check to ensure job has not

been canceled.
This commit is contained in:
Bill Ferguson
2025-11-09 00:13:48 -05:00
parent 193a615772
commit dbf0c5d853

View File

@@ -181,6 +181,9 @@ local function generate_thumbnails(images)
image:drop_cache()
image:generate_cache(true, 1, 3)
if has_job then
if not rt.job.valid then
return
end
if count % 10 == 0 then
rt.job.percent = count / #images
end