ethstats: add missing Ticker.Stop call (#20867)

This commit is contained in:
ucwong
2020-04-02 22:02:10 +08:00
committed by GitHub
parent 53e034ce0b
commit 37d6357806

View File

@ -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 {