Skip to content

Commit

Permalink
Call ticker.Stop() when aggregator is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
byronwolfman committed Nov 24, 2022
1 parent 6391269 commit 47827df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions statsd/aggregator.go
Original file line number Diff line number Diff line change
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 47827df

Please sign in to comment.