Skip to content

Commit

Permalink
Await for disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Oct 6, 2023
1 parent 88a6acf commit b421786
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 @@ -666,7 +666,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 b421786

Please sign in to comment.