Fix it even more

This commit is contained in:
Josh Deprez 2024-03-30 14:32:27 +11:00
parent e3a6aecd51
commit 36e5ebc9bd
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -104,6 +104,9 @@ func main() {
pktlen, raddr, readErr := ln.ReadFromUDP(pktbuf)
// net.PacketConn.ReadFrom: "Callers should always process
// the n > 0 bytes returned before considering the error err."
if ctx.Err() != nil {
return
}
log.Printf("Received packet of length %d from %v", pktlen, raddr)