Original code was missing a check on 'success' to abort failed tasks.

This commit is contained in:
Marc-Andre Ferland 2022-10-11 22:04:41 -04:00
parent b673e216b6
commit 89b911a9dc

View File

@ -669,7 +669,7 @@ async function checkTasks() {
let success = await doMakeImage(newTask)
task.batchesDone++
if (!newTask.isProcessing) {
if (!newTask.isProcessing || !success) {
task.isProcessing = false
break
}