[FIX] End Jitsi call on unmount (#1291)

This commit is contained in:
Diego Mello 2019-10-09 11:58:27 -03:00 committed by GitHub
parent 1b5f565b08
commit 4ac98a15c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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 = () => {