mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 06:57:24 +00:00
consensus: skip channel close during shutdown (#8155)
I see this panic in tests occasionally, and I don't think there's any need to close this channel: - it's only sent to in one place which has a select case with a default clause, so there's no chance of deadlocks. - the only place we recieve from it thas a timeout.
This commit is contained in:
@@ -511,8 +511,6 @@ func (cs *State) OnStop() {
|
||||
}
|
||||
}
|
||||
|
||||
close(cs.onStopCh)
|
||||
|
||||
if cs.timeoutTicker.IsRunning() {
|
||||
cs.timeoutTicker.Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user