From d6e99b5cd49fcf08f23c652d7aeb1da23dc37341 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Mon, 13 May 2024 17:29:48 -0400 Subject: [PATCH] nit --- network/peer/peer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network/peer/peer.go b/network/peer/peer.go index ea721087c387..2b0f5788895b 100644 --- a/network/peer/peer.go +++ b/network/peer/peer.go @@ -651,7 +651,7 @@ func (p *peer) sendNetworkMessages() { zap.Stringer("messageOp", message.GetPeerListOp), zap.Error(err), ) - continue + return } p.Send(p.onClosingCtx, msg) @@ -838,6 +838,7 @@ func (p *peer) handlePing(msg *p2p.Ping) { zap.Stringer("messageOp", message.PongOp), zap.Error(err), ) + p.StartClose() return }