diff --git a/src/index.ts b/src/index.ts index d2480de..0ede723 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,10 +49,9 @@ export default class HandshakeProxy extends Proxy { } 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);