Refactor transportclose 15
This commit is contained in:
parent
12516b59b8
commit
f6e3203198
10
app.js
10
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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user