From 41c6ad281dfcf8229e6a815eeaa638d3a76a0a17 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 16 Sep 2022 11:08:02 +0300 Subject: [PATCH] Delete the whole call(with id) when we call closeCall --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 2295ce5..b625313 100644 --- a/app.js +++ b/app.js @@ -110,7 +110,7 @@ const closeCall = (callId) => { videoCalls[callId]?.consumerTransport.close(); videoCalls[callId]?.producerTransport.close(); videoCalls[callId].router.close(); - delete videoCalls[callId].router; + delete videoCalls[callId]; } }