fix: when error is returned as first response

This commit is contained in:
Cassandra Heart 2024-03-07 23:12:49 -06:00
parent dc065cc682
commit d1079e17f0
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -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() {