*Don't await on tryOpen
This commit is contained in:
parent
a8dd1d2c20
commit
3da2a3e8df
|
@ -49,10 +49,9 @@ export default class HandshakeProxy extends Proxy {
|
||||||
}
|
}
|
||||||
|
|
||||||
self._node.pool.bindPeer(peer);
|
self._node.pool.bindPeer(peer);
|
||||||
const open = peer.tryOpen();
|
peer.tryOpen();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
socket.emit("connect");
|
socket.emit("connect");
|
||||||
await open;
|
|
||||||
self._node.pool.peers.add(peer);
|
self._node.pool.peers.add(peer);
|
||||||
self._node.pool.connectedGroups.add(peer.address.getGroup());
|
self._node.pool.connectedGroups.add(peer.address.getGroup());
|
||||||
self._node.pool.emit("peer", peer);
|
self._node.pool.emit("peer", peer);
|
||||||
|
|
Loading…
Reference in New Issue