From fdb6e3394753b7ce9ee747ac9235aca062991d07 Mon Sep 17 00:00:00 2001 From: beefchimi Date: Sun, 26 Nov 2023 13:18:33 -0500 Subject: [PATCH] :bug: [Sound] Do not call .stop() unless started --- src/Sound.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sound.ts b/src/Sound.ts index b319d76..0feace4 100644 --- a/src/Sound.ts +++ b/src/Sound.ts @@ -129,7 +129,7 @@ export class Sound extends EmittenCommon { stop() { this.#setState('stopping'); - this.#source.stop(); + if (this.#started) this.#source.stop(); this.#source.disconnect(); this.empty();