LH-253: Check if we have callId in closeCall

This commit is contained in:
Sergiu Toma 2022-10-18 10:51:20 +03:00
parent fafbee6e4c
commit 03a11126c4
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -109,7 +109,7 @@ const mediaCodecs = [
const closeCall = (callId) => {
try {
if (videoCalls[callId]) {
if (callId && videoCalls[callId]) {
videoCalls[callId].producer?.close();
videoCalls[callId].consumer?.close();
videoCalls[callId]?.consumerTransport?.close();