From 46897e3ad768d22c39362f9472c6843efaabdc1e Mon Sep 17 00:00:00 2001 From: juancarmore Date: Wed, 29 May 2024 16:09:25 +0200 Subject: [PATCH] Add comment before resetting variables in Angular tutorial --- application-client/openvidu-angular/src/app/app.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application-client/openvidu-angular/src/app/app.component.ts b/application-client/openvidu-angular/src/app/app.component.ts index a813f894..e5186fa8 100644 --- a/application-client/openvidu-angular/src/app/app.component.ts +++ b/application-client/openvidu-angular/src/app/app.component.ts @@ -111,6 +111,8 @@ export class AppComponent implements OnDestroy { async leaveRoom() { // Leave the room by calling 'disconnect' method over the Room object await this.room?.disconnect(); + + // Reset all variables delete this.room; delete this.localTrack; this.remoteTracksMap.clear();