From 1c1168a5ba3e6f2bc354e68d331fb16a507a41f1 Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Fri, 6 Oct 2023 10:40:40 +0200 Subject: [PATCH] Wait for peer disconnect --- packages/beacon-node/src/network/peers/peerManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/src/network/peers/peerManager.ts b/packages/beacon-node/src/network/peers/peerManager.ts index 0ce3fdbb107c..7bdbd44b2db5 100644 --- a/packages/beacon-node/src/network/peers/peerManager.ts +++ b/packages/beacon-node/src/network/peers/peerManager.ts @@ -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); } }