*Update dist

This commit is contained in:
Derrick Hammer 2023-02-18 09:49:51 -05:00
parent 3da2a3e8df
commit 37cbac3435
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

3
dist/index.js vendored
View File

@ -28,10 +28,9 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
return { connect: false };
}
self._node.pool.bindPeer(peer);
const open = peer.tryOpen();
peer.tryOpen();
// @ts-ignore
socket.emit("connect");
await open;
self._node.pool.peers.add(peer);
self._node.pool.connectedGroups.add(peer.address.getGroup());
self._node.pool.emit("peer", peer);