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

pull/20875/head
ucwong 5 years ago committed by GitHub
parent 53e034ce0b
commit 37d6357806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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 {

Loading…
Cancel
Save