From 4ac98a15c76fa7bd153fead56678511d86cff73a Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 9 Oct 2019 11:58:27 -0300 Subject: [PATCH] [FIX] End Jitsi call on unmount (#1291) --- app/views/JitsiMeetView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/JitsiMeetView.js b/app/views/JitsiMeetView.js index 495a796c..1124d501 100644 --- a/app/views/JitsiMeetView.js +++ b/app/views/JitsiMeetView.js @@ -33,6 +33,13 @@ class JitsiMeetView extends React.Component { }, 1000); } + componentWillUnmount() { + if (this.jitsiTimeout) { + BackgroundTimer.clearInterval(this.jitsiTimeout); + } + JitsiMeet.endCall(); + } + // Jitsi Update Timeout needs to be called every 10 seconds to make sure // call is not ended and is available to web users. onConferenceJoined = () => {