Skip to content

Commit

Permalink
💬 [Stack] TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Dec 6, 2023
1 parent 300dc8b commit 3555328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ export class Stack extends EmittenCommon<StackEventMap> {
};

readonly #handleSoundEnded: SoundEventMap['ended'] = (event) => {
// TODO: We need to clear sounds from the `queue` that were never
// "started". Ideally, we hook into a `disconnect` event.
this.#setQueue(this.#queue.filter(({id}) => id !== event.id));

// We only set `stopping` state when `.stop()` is called.
Expand Down

0 comments on commit 3555328

Please sign in to comment.