mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42: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 {
|
if !starting {
|
||||||
panic("Routine has already started")
|
panic("Routine has already started")
|
||||||
}
|
}
|
||||||
rt.rdy <- struct{}{}
|
close(rt.rdy)
|
||||||
errorsDrained := false
|
errorsDrained := false
|
||||||
for {
|
for {
|
||||||
if !rt.isRunning() {
|
if !rt.isRunning() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user