From 37d6357806f49071cad5ab2043545b05eebdb7ee Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 2 Apr 2020 22:02:10 +0800 Subject: [PATCH] ethstats: add missing Ticker.Stop call (#20867) --- ethstats/ethstats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index f9284722c..defca45c8 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -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 {