Fix typo and missing return

This commit is contained in:
awsr
2025-11-30 22:02:03 -08:00
parent a1f6611da2
commit 143558df4b
+2 -1
View File
@@ -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();
}
}