Skip to content

Commit

Permalink
Merge pull request #269 from byronwolfman/byronwolfman/stop-aggregato…
Browse files Browse the repository at this point in the history
…r-timer

Bug fix: Call ticker.Stop() when aggregator is stopped
  • Loading branch information
carlosroman committed Dec 15, 2022
2 parents 6391269 + 47827df commit 9faba32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions statsd/aggregator.go
Expand Up @@ -66,6 +66,7 @@ func (a *aggregator) start(flushInterval time.Duration) {
case <-ticker.C:
a.flush()
case <-a.closed:
ticker.Stop()
return
}
}
Expand Down

0 comments on commit 9faba32

Please sign in to comment.