From 0f39ce006a2421ab378ceec23438265a2e4d3d47 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Thu, 7 Jan 2021 19:09:22 +0100 Subject: [PATCH] remove duplicate close handler - #21 --- src/y-webrtc.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/y-webrtc.js b/src/y-webrtc.js index aafcab2..0522c71 100644 --- a/src/y-webrtc.js +++ b/src/y-webrtc.js @@ -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 => {