From 143558df4bc6e9aba1068386175b17a15ca59063 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sun, 30 Nov 2025 22:02:03 -0800 Subject: [PATCH] Fix typo and missing return --- javascript/gallery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index 45d38b4c3..e2fde6291 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -64,9 +64,10 @@ class SimpleFunctionQueue { } if (config.signal.aborted) { debug(`${this.#id} Queue: Skipping addition to queue due to "${config.signal.reason}"`); + return; } this.#queue.push(config); - if (!this.busy) { + if (!this.#running) { this.#runNext(); } }