openvidu-components: Cleared captions subscription

pull/803/head
Carlos Santos 2023-04-10 15:43:32 +02:00
parent de9f195fd5
commit 1d68cbeaf8
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,6 @@ export class SessionComponent implements OnInit, OnDestroy {
protected layoutWidthSubscription: Subscription; protected layoutWidthSubscription: Subscription;
protected updateLayoutInterval: NodeJS.Timer; protected updateLayoutInterval: NodeJS.Timer;
// private sttReconnectionInterval: NodeJS.Timer;
private captionLanguageSubscription: Subscription; private captionLanguageSubscription: Subscription;
protected log: ILogger; protected log: ILogger;
@ -214,6 +213,7 @@ export class SessionComponent implements OnInit, OnDestroy {
this.sessionScreen = null; this.sessionScreen = null;
if (this.menuSubscription) this.menuSubscription.unsubscribe(); if (this.menuSubscription) this.menuSubscription.unsubscribe();
if (this.layoutWidthSubscription) this.layoutWidthSubscription.unsubscribe(); if (this.layoutWidthSubscription) this.layoutWidthSubscription.unsubscribe();
if (this.captionLanguageSubscription) this.captionLanguageSubscription.unsubscribe();
} }
leaveSession() { leaveSession() {