mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
ethstats: add missing Ticker.Stop call (#20867)
This commit is contained in:
parent
53e034ce0b
commit
37d6357806
1 changed files with 1 additions and 0 deletions
|
|
@ -240,6 +240,7 @@ func (s *Service) loop() {
|
||||||
}
|
}
|
||||||
// Keep sending status updates until the connection breaks
|
// Keep sending status updates until the connection breaks
|
||||||
fullReport := time.NewTicker(15 * time.Second)
|
fullReport := time.NewTicker(15 * time.Second)
|
||||||
|
defer fullReport.Stop()
|
||||||
|
|
||||||
for err == nil {
|
for err == nil {
|
||||||
select {
|
select {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue