Fix error on stopping tasks.

This commit is contained in:
Marc-Andre Ferland 2022-10-11 23:15:06 -04:00
parent 89b911a9dc
commit 8b5b9ee8f1

View File

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