mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Don't leak goroutines in multi publisher; fixes #531
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user