From 18f0689ca952b424c19c0677e37ff5988ee9a765 Mon Sep 17 00:00:00 2001 From: amolghode1981 <86001342+amolghode1981@users.noreply.github.com> Date: Fri, 4 Mar 2022 21:27:19 +0530 Subject: [PATCH] Description : Fixing LGTM error. Instead of assignment, extra |=| was typed. (#24657) --- client/lib/voip/Stream.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/lib/voip/Stream.ts b/client/lib/voip/Stream.ts index d8d33b95927..5cb078d58cb 100644 --- a/client/lib/voip/Stream.ts +++ b/client/lib/voip/Stream.ts @@ -61,7 +61,8 @@ export default class Stream { if (this.renderingMediaElement) { // Someone already has setup the stream and initializing it once again // Clear the existing stream object - this.renderingMediaElement.srcObject == null; + this.renderingMediaElement.pause(); + this.renderingMediaElement.srcObject = null; } this.renderingMediaElement = rmElement; }