From d1079e17f0cc52d51a1bb1cf75247fd7ef111f59 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Thu, 7 Mar 2024 23:12:49 -0600 Subject: [PATCH] fix: when error is returned as first response --- node/consensus/master/consensus_frames.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/consensus/master/consensus_frames.go b/node/consensus/master/consensus_frames.go index 3389f0a..f5263f6 100644 --- a/node/consensus/master/consensus_frames.go +++ b/node/consensus/master/consensus_frames.go @@ -102,6 +102,10 @@ func (e *MasterClockConsensusEngine) collect( }, }, ) + if err != nil { + cc.Close() + continue + } for msg, err := syncClient.Recv(); msg != nil && err == nil; msg, err = syncClient.Recv() {