Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/utils/webrtc/webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ export function initWebRtc(signaling, _callParticipantCollection, _localCallPart
// is received before the "leave call" request ends.
localUserInCall = false

localStateBroadcaster.destroy()
localStateBroadcaster = null
if (localStateBroadcaster) {
localStateBroadcaster.destroy()
localStateBroadcaster = null
}
})
signaling.on('leaveCall', function(token, reconnect) {
// When the MCU is used and there is a connection error the call is
Expand Down
Loading