func (this *Pinger) Stop() {
	this.stopOnce.Do(func() {
		// Tell the goroutines it's time to quit
		this.quit()

		// Close the raw connection
		this.rconn.Close()

		// Close the network connection
		this.pconn.Close()

		this.wg.Wait()

		this.done = nil
		this.reschan = nil

		atomic.CompareAndSwapInt64(&this.pid, this.pid, 0)
	})
}
// Stop stops the pinging processes.
Stop stops the pinging processes.
// Stop stops the pinging processes .
func (this *Pinger) Stop() {
	this.stopOnce.Do(func() {
		this.quit()
		this.rconn.Close()
		this.pconn.Close()
		this.wg.Wait()
		this.done = nil
		this.reschan = nil
		atomic.CompareAndSwapInt64(&this.pid, this.pid, 0)
	})
}
func ( this * Pinger ) Stop ( ) { this . stopOnce . Do ( func ( ) { this . quit ( ) this . rconn . Close ( ) this . pconn . Close ( ) this . wg . Wait ( ) this . done = nil this . reschan = nil atomic . CompareAndSwapInt64 ( & this . pid , this . pid , 0 ) } ) }
Stop stops the pinging processes.
Stop stops the pinging processes .
// Tell the goroutines it's time to quit // Close the raw connection // Close the network connection