mirror of
https://github.com/go-ping/ping.git
synced 2025-09-28 05:55:56 +00:00
Delete redundant pinger.Stop() call (#197)
This commit is contained in:
1
ping.go
1
ping.go
@@ -462,7 +462,6 @@ func (p *Pinger) runLoop(
|
|||||||
timeout := time.NewTicker(p.Timeout)
|
timeout := time.NewTicker(p.Timeout)
|
||||||
interval := time.NewTicker(p.Interval)
|
interval := time.NewTicker(p.Interval)
|
||||||
defer func() {
|
defer func() {
|
||||||
p.Stop()
|
|
||||||
interval.Stop()
|
interval.Stop()
|
||||||
timeout.Stop()
|
timeout.Stop()
|
||||||
}()
|
}()
|
||||||
|
Reference in New Issue
Block a user