official/regenerate_thumbnails - added check to ensure job has not
been canceled.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user