Skip to content

Commit

Permalink
Don't leak goroutines in multi publisher; fixes #531
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed Sep 30, 2015
1 parent 68e3bda commit af4a35c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xfer/multi_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (p *MultiPublisher) Stop() {
func (p *MultiPublisher) appendFilter(list []tuple, f func(tuple) bool) []tuple {
for _, t := range p.list {
if !f(t) {
t.publisher.Stop()
continue
}
list = append(list, t)
Expand Down

0 comments on commit af4a35c

Please sign in to comment.