Skip to content

Commit

Permalink
fix select (hyperledger-labs#567) (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>
Co-authored-by: pfi79 <pfi79@mail.ru>
  • Loading branch information
HagarMeir and pfi79 authored Feb 19, 2024
1 parent c44565b commit 0f7bf54
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 @@ -1342,7 +1342,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 0f7bf54

Please sign in to comment.