diff options
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 701e308..605303e 100644 --- a/device/receive.go +++ b/device/receive.go @@ -112,7 +112,7 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) { if err != nil { device.PutMessageBuffer(buffer) - if errors.Is(err, net.ErrClosed) { + if errors.Is(err, conn.NetErrClosed) { return } device.log.Error.Printf("Failed to receive packet: %v", err) |