fix to wrong peerId in event

This commit is contained in:
Martin West
2025-04-30 00:16:45 +02:00
parent 45b707f39d
commit e33b267977

View File

@@ -269,7 +269,7 @@ export class PeerManager {
let peerConnection = new PeerConnection(this, remotePeerID, this.websocketSendPeerMessage.bind(this));
this.peers.set(remotePeerID, peerConnection);
await peerConnection.connect();
this.onPeerConnected(this.peerID);
this.onPeerConnected(remotePeerID);
return peerConnection;
}