Skip to content

Commit 0f39ce0

Browse files
committed
remove duplicate close handler - #21
1 parent e0d5d11 commit 0f39ce0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/y-webrtc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ export class WebrtcConn {
218218
checkIsSynced(room)
219219
this.peer.destroy()
220220
log('closed connection to ', logging.BOLD, remotePeerId)
221-
})
222-
this.peer.on('close', () => {
223-
log('Connection to remote peer ', logging.BOLD, remotePeerId, logging.UNBOLD, ' has been closed')
224221
announceSignalingInfo(room)
225222
})
226223
this.peer.on('error', err => {

0 commit comments

Comments
 (0)