From edc039edfcb1e9c76100306225ca439074d5e1d9 Mon Sep 17 00:00:00 2001 From: beefchimi Date: Wed, 20 Dec 2023 17:45:09 -0500 Subject: [PATCH] :rewind: [Stack] Resolve the TODO comment --- src/Stack.ts | 3 --- 1 file changed, 3 deletions(-) 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();