remove duplicate close handler - #21

This commit is contained in:
Kevin Jahns 2021-01-07 19:09:22 +01:00
parent e0d5d11ec4
commit 0f39ce006a

View file

@ -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 => {