mirror of
https://github.com/go-ping/ping.git
synced 2025-06-23 12:47:09 +00:00
Delete redundant pinger.Stop() call (#197)
This commit is contained in:
parent
64d100b308
commit
6d40342032
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()
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user