Skip to content

Commit

Permalink
fix select
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <[email protected]>
  • Loading branch information
pfi79 committed Nov 26, 2023
1 parent 31f018a commit f942960
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/bft/viewchanger.go
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,13 @@ func (v *ViewChanger) Decide(proposal types.Proposal, signatures []types.Signatu
}
}
v.Pruner.MaybePruneRevokedRequests()
v.inFlightDecideChan <- struct{}{}

select {
case v.inFlightDecideChan <- struct{}{}:
return
case <-v.stopChan:
return
}
}

// Complain panics when a view change is requested
Expand Down

0 comments on commit f942960

Please sign in to comment.