From 3555328c9987a333ea08175268ecbb05c03f5f82 Mon Sep 17 00:00:00 2001 From: beefchimi Date: Sun, 26 Nov 2023 13:24:51 -0500 Subject: [PATCH] :speech_balloon: [Stack] TODO comment --- src/Stack.ts | 2 ++ 1 file changed, 2 insertions(+) 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.