diff options
Diffstat (limited to 'device/receive.go')
-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 5c837c1..09fae59 100644 --- a/device/receive.go +++ b/device/receive.go @@ -633,7 +633,7 @@ func (peer *Peer) RoutineSequentialReceiver() { offset := MessageTransportOffsetContent atomic.AddUint64(&peer.stats.rxBytes, uint64(len(elem.packet))) _, err := device.tun.device.Write(elem.buffer[:offset+len(elem.packet)], offset) - if err != nil { + if err != nil && !device.isClosed.Get() { logError.Println("Failed to write packet to TUN device:", err) } } |