mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 14:22:16 +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:
parent
f81c319ece
commit
9d41770a99
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user