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', () => {
|
producer.on('transportclose', () => {
|
||||||
console.log('transport for this producer closed ')
|
console.log('transport for this producer closed ')
|
||||||
closeRoom(callId)
|
// closeRoom(callId)
|
||||||
// producer.close()
|
producer.close()
|
||||||
// delete router[callId]
|
delete router[callId]
|
||||||
})
|
})
|
||||||
|
|
||||||
// Send back to the client the Producer's id
|
// Send back to the client the Producer's id
|
||||||
@ -192,8 +192,8 @@ peers.on('connection', async socket => {
|
|||||||
|
|
||||||
consumer.on('transportclose', () => {
|
consumer.on('transportclose', () => {
|
||||||
console.log('transport close from consumer', callId)
|
console.log('transport close from consumer', callId)
|
||||||
closeRoom(callId)
|
// closeRoom(callId)
|
||||||
// delete router[callId]
|
delete router[callId]
|
||||||
})
|
})
|
||||||
|
|
||||||
consumer.on('producerclose', () => {
|
consumer.on('producerclose', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user