Browse Source

Close rdy channel

+ close `rdy` channel to ensure that calls to `<-ready()` will
    always return if the routine is ready
pull/3878/head
Sean Braithwaite 5 years ago
parent
commit
9d41770a99
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      blockchain/v2/routine.go

+ 1
- 1
blockchain/v2/routine.go View File

@ -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…
Cancel
Save