diff options
Diffstat (limited to 'send.go')
-rw-r--r-- | send.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -264,8 +264,10 @@ func (device *Device) RoutineReadFromTUN() { size, err := device.tun.device.Read(elem.buffer[:], offset) if err != nil { - logError.Println("Failed to read packet from TUN device:", err) - device.Close() + if !device.isClosed.Get() { + logError.Println("Failed to read packet from TUN device:", err) + device.Close() + } return } |