mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-18 23:05:03 +00:00
Close rdy channel
+ close `rdy` channel to ensure that calls to `<-ready()` will
always return if the routine is ready
This commit is contained in:
@@ -67,7 +67,7 @@ func (rt *Routine) start() {
|
||||
if !starting {
|
||||
panic("Routine has already started")
|
||||
}
|
||||
rt.rdy <- struct{}{}
|
||||
close(rt.rdy)
|
||||
errorsDrained := false
|
||||
for {
|
||||
if !rt.isRunning() {
|
||||
|
||||
Reference in New Issue
Block a user