Delete redundant pinger.Stop() call (#197)

This commit is contained in:
chenlujjj 2022-04-28 21:36:15 +08:00 committed by GitHub
parent 64d100b308
commit 6d40342032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,7 +462,6 @@ func (p *Pinger) runLoop(
timeout := time.NewTicker(p.Timeout)
interval := time.NewTicker(p.Interval)
defer func() {
p.Stop()
interval.Stop()
timeout.Stop()
}()