Skip to content

Commit

Permalink
fix: dispose effects on call to LocalStream.stop (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryce Tham <[email protected]>
  • Loading branch information
brycetham and Bryce Tham authored Apr 16, 2024
1 parent ee46d62 commit 60205bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/media/local-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 60205bc

Please sign in to comment.