Skip to content

Commit

Permalink
gemini: aviod deadlock when consumers no longer consume the pump
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Johansson committed Jul 8, 2019
1 parent f9e0f0f commit 80290db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/gemini/pump.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ func (p *Pump) Start(d time.Duration, postFunc func()) {
case <-timer.C:
p.logger.Info("Test run completed. Exiting.")
return
default:
p.ch <- newHeartBeat()
case p.ch <- newHeartBeat():
}
}
}()
Expand Down

0 comments on commit 80290db

Please sign in to comment.