summaryrefslogtreecommitdiffhomepage
path: root/device/receive.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/receive.go')
-rw-r--r--device/receive.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/device/receive.go b/device/receive.go
index b1959c6..5ddb66c 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -104,6 +104,9 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
if errors.Is(err, net.ErrClosed) {
return
}
+ if neterr, ok := err.(net.Error); ok && !neterr.Temporary() {
+ return
+ }
device.log.Errorf("Failed to receive packet: %v", err)
if deathSpiral < 10 {
deathSpiral++