From 03a11126c49728df7a193da36a04135c6787d10b Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 18 Oct 2022 10:51:20 +0300 Subject: [PATCH] LH-253: Check if we have callId in closeCall --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 1ea5d15..7bf0803 100644 --- a/app.js +++ b/app.js @@ -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();