Refactor transportclose 12
This commit is contained in:
parent
0f1c268fa5
commit
cd8153e3e7
4
app.js
4
app.js
@ -160,7 +160,7 @@ peers.on('connection', async socket => {
|
||||
producer.on('transportclose', () => {
|
||||
console.log('transport for this producer closed ')
|
||||
producer.close()
|
||||
router[callId] = null
|
||||
delete router[callId]
|
||||
})
|
||||
|
||||
// Send back to the client the Producer's id
|
||||
@ -191,7 +191,7 @@ peers.on('connection', async socket => {
|
||||
|
||||
consumer.on('transportclose', () => {
|
||||
console.log('transport close from consumer', callId)
|
||||
router[callId] = null
|
||||
delete router[callId]
|
||||
})
|
||||
|
||||
consumer.on('producerclose', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user