diff options
-rw-r--r-- | device/receive.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go index 13f62eb..9f6b363 100644 --- a/device/receive.go +++ b/device/receive.go @@ -94,11 +94,11 @@ func (device *Device) RoutineReceiveIncoming(recv conn.ReceiveFunc) { size, endpoint, err = recv(buffer[:]) if err != nil { - device.log.Verbosef("Routine: receive incoming %s - failed to receive packet: %v", recvName, err) device.PutMessageBuffer(buffer) if errors.Is(err, net.ErrClosed) { return } + device.log.Verbosef("Routine: receive incoming %s - failed to receive packet: %v", recvName, err) if neterr, ok := err.(net.Error); ok && !neterr.Temporary() { return } |