diff --git a/front/src/WebRtc/SimplePeer.ts b/front/src/WebRtc/SimplePeer.ts index f1a66bcc..4039e10b 100644 --- a/front/src/WebRtc/SimplePeer.ts +++ b/front/src/WebRtc/SimplePeer.ts @@ -131,7 +131,7 @@ export class SimplePeer { if(peerConnection.destroyed){ peerConnection.toClose = true; peerConnection.destroy(); - let peerConnexionDeleted = this.PeerConnectionArray.delete(user.userId); + const peerConnexionDeleted = this.PeerConnectionArray.delete(user.userId); if(!peerConnexionDeleted){ throw 'Error to delete peer connection'; }