diff --git a/packages/beacon-node/src/network/core/networkCore.ts b/packages/beacon-node/src/network/core/networkCore.ts index f0757c624bbb..34733739a996 100644 --- a/packages/beacon-node/src/network/core/networkCore.ts +++ b/packages/beacon-node/src/network/core/networkCore.ts @@ -253,6 +253,7 @@ export class NetworkCore implements INetworkCore { /** Destroy this instance. Can only be called once. */ async close(): Promise { if (this.closed) return; + this.clock.off(ClockEvent.epoch, this.onEpoch); // Must goodbye and disconnect before stopping libp2p