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

Merged
sergiu merged 2 commits from delete-whole-call-id into master 2022-09-17 08:43:58 +00:00
Showing only changes of commit 41c6ad281d - Show all commits

2
app.js
View File

@ -110,7 +110,7 @@ const closeCall = (callId) => {
videoCalls[callId]?.consumerTransport.close(); videoCalls[callId]?.consumerTransport.close();
videoCalls[callId]?.producerTransport.close(); videoCalls[callId]?.producerTransport.close();
videoCalls[callId].router.close(); videoCalls[callId].router.close();
delete videoCalls[callId].router; delete videoCalls[callId];
} }
} }