handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs

fix: incorrect max check

mary.my.id 3fd3c309 7db0edc7

verified
+1 -1
+1 -1
src/lib/utils/promise-queue.ts
··· 36 36 #run() { 37 37 let task: QueueTask | undefined; 38 38 39 - if (this.#current <= this.#max && (task = this.#queue.dequeue()) !== undefined) { 39 + if (this.#current < this.#max && (task = this.#queue.dequeue()) !== undefined) { 40 40 const { deferred, fn } = task; 41 41 this.#current++; 42 42