Fix return on deadlock fix

Fix the return value bug introduced by #85

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2020-10-01 17:36:18 +02:00 committed by Charlie Jonas
parent 70ede2ab32
commit 671c40f29a

View File

@ -473,7 +473,7 @@ func (p *Pinger) recvICMP(
select {
case <-p.done:
return
return nil
case recv <- &packet{bytes: bytes, nbytes: n, ttl: ttl}:
}
}