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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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