mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethstats : add missing ticker.Stop() call
This commit is contained in:
parent
66ed58bfcc
commit
0382c0c98c
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
|
||||
fullReport := time.NewTicker(15 * time.Second)
|
||||
defer fullReport.Stop()
|
||||
|
||||
for err == nil {
|
||||
select {
|
||||
|
|
|
|||
Loading…
Reference in a new issue