Skip to content

Commit

Permalink
Wait for peer disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Oct 6, 2023
1 parent c8c4f28 commit 1c1168a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/network/peers/peerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ export class PeerManager {
} catch (e) {
this.logger.verbose("Failed to send goodbye", {peer: prettyPrintPeerId(peer)}, e as Error);
} finally {
void this.disconnect(peer);
await this.disconnect(peer);
}
}

Expand Down

0 comments on commit 1c1168a

Please sign in to comment.