ethstats : add missing ticker.Stop() call

This commit is contained in:
ucwong 2020-04-02 11:14:28 +00:00
parent 66ed58bfcc
commit 0382c0c98c

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 {