Skip to content

Commit

Permalink
Fix HotRod job pool termination (#1453) (#1454)
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Falak R Wani <[email protected]>
  • Loading branch information
mfrw authored and yurishkuro committed Apr 17, 2019
1 parent f9702c4 commit be6340f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/hotrod/pkg/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ func (p *Pool) Execute(job func()) {

// Stop halts all the workers
func (p *Pool) Stop() {
p.stop <- struct{}{}
if p.stop != nil {
close(p.stop)
}
}

0 comments on commit be6340f

Please sign in to comment.