diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-07 09:39:06 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-07 09:39:06 +0200 |
commit | efb881855098ac1d17cbe000b73d5ed31202c204 (patch) | |
tree | 0d003af5120d5bb7edb51547153e1cf18edb96e5 /device | |
parent | 69b39db0b42275235975594448fc66d011d78ee9 (diff) |
device: avoid verbose log line during ordinary shutdown sequence
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
-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 } |