diff --git a/app.js b/app.js index 28d9e64..189bbec 100644 --- a/app.js +++ b/app.js @@ -159,9 +159,9 @@ peers.on('connection', async socket => { producer.on('transportclose', () => { console.log('transport for this producer closed ') - closeRoom(callId) - // producer.close() - // delete router[callId] + // closeRoom(callId) + producer.close() + delete router[callId] }) // Send back to the client the Producer's id @@ -192,8 +192,8 @@ peers.on('connection', async socket => { consumer.on('transportclose', () => { console.log('transport close from consumer', callId) - closeRoom(callId) - // delete router[callId] + // closeRoom(callId) + delete router[callId] }) consumer.on('producerclose', () => {