Skip to content

Commit 365e0d7

Browse files
ucwongenriquefynn
authored andcommitted
ethstats: add missing Ticker.Stop call (ethereum#20867)
1 parent 0c8c2bc commit 365e0d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)