Skip to content

Commit 37d6357

Browse files
authored
ethstats: add missing Ticker.Stop call (#20867)
1 parent 53e034c commit 37d6357

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ethstats/ethstats.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ func (s *Service) loop() {
240240
}
241241
// Keep sending status updates until the connection breaks
242242
fullReport := time.NewTicker(15 * time.Second)
243+
defer fullReport.Stop()
243244

244245
for err == nil {
245246
select {

0 commit comments

Comments
 (0)