remove duplicate close handler - #21
This commit is contained in:
parent
e0d5d11ec4
commit
0f39ce006a
1 changed files with 0 additions and 3 deletions
|
@ -218,9 +218,6 @@ export class WebrtcConn {
|
||||||
checkIsSynced(room)
|
checkIsSynced(room)
|
||||||
this.peer.destroy()
|
this.peer.destroy()
|
||||||
log('closed connection to ', logging.BOLD, remotePeerId)
|
log('closed connection to ', logging.BOLD, remotePeerId)
|
||||||
})
|
|
||||||
this.peer.on('close', () => {
|
|
||||||
log('Connection to remote peer ', logging.BOLD, remotePeerId, logging.UNBOLD, ' has been closed')
|
|
||||||
announceSignalingInfo(room)
|
announceSignalingInfo(room)
|
||||||
})
|
})
|
||||||
this.peer.on('error', err => {
|
this.peer.on('error', err => {
|
||||||
|
|
Loading…
Reference in a new issue