From 1d68cbeaf88ee60d714a17cd8c1dfac555d4ab4d Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 10 Apr 2023 15:43:32 +0200 Subject: [PATCH] openvidu-components: Cleared captions subscription --- .../src/lib/components/session/session.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts index d48f3270..29529bd5 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/session/session.component.ts @@ -85,7 +85,6 @@ export class SessionComponent implements OnInit, OnDestroy { protected layoutWidthSubscription: Subscription; protected updateLayoutInterval: NodeJS.Timer; - // private sttReconnectionInterval: NodeJS.Timer; private captionLanguageSubscription: Subscription; protected log: ILogger; @@ -214,6 +213,7 @@ export class SessionComponent implements OnInit, OnDestroy { this.sessionScreen = null; if (this.menuSubscription) this.menuSubscription.unsubscribe(); if (this.layoutWidthSubscription) this.layoutWidthSubscription.unsubscribe(); + if (this.captionLanguageSubscription) this.captionLanguageSubscription.unsubscribe(); } leaveSession() {