This commit is contained in:
Gregoire Parant 2020-10-20 18:03:10 +02:00
parent 173f7a5061
commit 7fa999a1bd

View File

@ -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';
}