diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 3d8ecfdef..af12948e1 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1791,7 +1791,12 @@ func (cs *State) enterPrecommitWait(ctx context.Context, height int64, round int defer func() { // Done enterPrecommitWait: - cs.TriggeredTimeoutPrecommit = true + func() { + cs.mtx.Lock() + defer cs.mtx.Unlock() + + cs.TriggeredTimeoutPrecommit = true + }() cs.newStep(ctx) }()