diff --git a/src/Stack.ts b/src/Stack.ts index c98fd28..db9c07a 100644 --- a/src/Stack.ts +++ b/src/Stack.ts @@ -223,10 +223,7 @@ export class Stack extends EmittenCommon { }; 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();