Skip to content

Commit dbf0c5d

Browse files
committed
official/regenerate_thumbnails - added check to ensure job has not
been canceled.
1 parent 193a615 commit dbf0c5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

official/regenerate_thumbnails.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ local function generate_thumbnails(images)
181181
image:drop_cache()
182182
image:generate_cache(true, 1, 3)
183183
if has_job then
184+
if not rt.job.valid then
185+
return
186+
end
184187
if count % 10 == 0 then
185188
rt.job.percent = count / #images
186189
end

0 commit comments

Comments
 (0)