Skip to content

Commit

Permalink
ethstats: add missing Ticker.Stop call (#20867)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 53e034c commit 37d6357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethstats/ethstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func (s *Service) loop() {
}
// Keep sending status updates until the connection breaks
fullReport := time.NewTicker(15 * time.Second)
defer fullReport.Stop()

for err == nil {
select {
Expand Down

0 comments on commit 37d6357

Please sign in to comment.