Browse Source

another lock

pull/8091/head
tycho garen 3 years ago
parent
commit
7e99b233e2
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      internal/consensus/state.go

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

@ -1770,7 +1770,12 @@ func (cs *State) enterPrecommitWait(ctx context.Context, height int64, round int
defer func() { defer func() {
// Done enterPrecommitWait: // Done enterPrecommitWait:
cs.TriggeredTimeoutPrecommit = true
func() {
cs.mtx.Lock()
defer cs.mtx.Unlock()
cs.TriggeredTimeoutPrecommit = true
}()
cs.newStep(ctx) cs.newStep(ctx)
}() }()


Loading…
Cancel
Save