summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go
index 6b9cccd..b1959c6 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -101,7 +101,7 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
if err != nil {
device.PutMessageBuffer(buffer)
- if errors.Is(err, conn.NetErrClosed) {
+ if errors.Is(err, net.ErrClosed) {
return
}
device.log.Errorf("Failed to receive packet: %v", err)