Skip to content

Commit

Permalink
remove duplicate close handler - #21
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jan 7, 2021
1 parent e0d5d11 commit 0f39ce0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/y-webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ export class WebrtcConn {
checkIsSynced(room)
this.peer.destroy()
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)
})
this.peer.on('error', err => {
Expand Down

0 comments on commit 0f39ce0

Please sign in to comment.