From 6d40342032f6acf48e9c29718c85cab6e56fc9f9 Mon Sep 17 00:00:00 2001 From: chenlujjj <953546398@qq.com> Date: Thu, 28 Apr 2022 21:36:15 +0800 Subject: [PATCH] Delete redundant pinger.Stop() call (#197) --- ping.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ping.go b/ping.go index e1c09ee..ef277ab 100644 --- a/ping.go +++ b/ping.go @@ -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() }()