From 3da2a3e8df161326f566a772f953253a68826b1d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Feb 2023 09:49:33 -0500 Subject: [PATCH] *Don't await on tryOpen --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);