[FIX] End Jitsi call on unmount (#1291)
This commit is contained in:
parent
1b5f565b08
commit
4ac98a15c7
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue