Delete the whole call(with id) when we call closeCall

This commit is contained in:
Sergiu Toma 2022-09-16 11:08:02 +03:00
parent f5406f163f
commit 41c6ad281d
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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];
}
}