diff --git a/src/Stack.ts b/src/Stack.ts index e12498c..c98fd28 100644 --- a/src/Stack.ts +++ b/src/Stack.ts @@ -223,6 +223,8 @@ 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.