Skip to content

Commit

Permalink
fix: clear queue clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jun 24, 2024
1 parent 64447f1 commit 321c233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export class Queue {

q.reject(new Error(`Aborted, due to reason: "${reason}"`))
}
// Clear the queue, but leave any isRunning functions in place:
this.queue = this.queue.filter((q) => q.isRunning)
}

private checkQueue() {
Expand Down

0 comments on commit 321c233

Please sign in to comment.