From 60205bca573c96fca35153bd3e1469509ca0626e Mon Sep 17 00:00:00 2001 From: Bryce Tham Date: Tue, 16 Apr 2024 15:25:34 -0400 Subject: [PATCH] fix: dispose effects on call to LocalStream.stop (#75) Co-authored-by: Bryce Tham --- src/media/local-stream.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/media/local-stream.ts b/src/media/local-stream.ts index fb62a77..8acf3e9 100644 --- a/src/media/local-stream.ts +++ b/src/media/local-stream.ts @@ -217,6 +217,7 @@ abstract class _LocalStream extends Stream { stop(): void { this.inputTrack.stop(); this.outputTrack.stop(); + this.disposeEffects(); // calling stop() will not automatically emit Ended, so we emit it here this[StreamEventNames.Ended].emit(); }