Delete the whole call(with id) when we call closeCall #5
2
app.js
2
app.js
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user