LH-253: Check if we have callId in closeCall
This commit is contained in:
parent
fafbee6e4c
commit
03a11126c4
2
app.js
2
app.js
@ -109,7 +109,7 @@ const mediaCodecs = [
|
|||||||
|
|
||||||
const closeCall = (callId) => {
|
const closeCall = (callId) => {
|
||||||
try {
|
try {
|
||||||
if (videoCalls[callId]) {
|
if (callId && videoCalls[callId]) {
|
||||||
videoCalls[callId].producer?.close();
|
videoCalls[callId].producer?.close();
|
||||||
videoCalls[callId].consumer?.close();
|
videoCalls[callId].consumer?.close();
|
||||||
videoCalls[callId]?.consumerTransport?.close();
|
videoCalls[callId]?.consumerTransport?.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user