Skip to content

Commit

Permalink
⏪ [Stack] Resolve the TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Dec 20, 2023
1 parent 0925bf7 commit f548c40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,7 @@ 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.
// There is no `statechange` specifically for "ended".
this.#handleStateFromQueue();
Expand Down

0 comments on commit f548c40

Please sign in to comment.