Skip to content

Commit

Permalink
💬 [Stack] Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Dec 27, 2023
1 parent 82b7300 commit d352dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class Stack extends EmittenCommon<StackEventMap> {
readonly #handleSoundEnded: SoundEventMap['ended'] = (event) => {
this.#setQueue(this.#queue.filter(({id}) => id !== event.id));
// We only set `stopping` state when `.stop()` is called.
// There is no `state` change specifically for "ended".
// There is an `ending` value, but it is redundant with the `ended` event.
this.#handleStateFromQueue();
};
}

0 comments on commit d352dfd

Please sign in to comment.