Browse Source

another lock

pull/8127/head
tycho garen 3 years ago
committed by M. J. Fromberger
parent
commit
5b8e30e900
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      internal/consensus/state.go

+ 6
- 1
internal/consensus/state.go View File

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


Loading…
Cancel
Save