diff options
author | Filippo Valsorda <hi@filippo.io> | 2018-05-20 23:18:25 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-21 20:21:00 +0200 |
commit | 84f52ce0d690c2377b032c8fc42b591930822d7e (patch) | |
tree | 596613f3b1fed60f44e70c321cedc8b6055f8472 /send.go | |
parent | 7bdc5eb54ed7ac45016e6e028913f1594471a074 (diff) |
Make successful tests silent
License: MIT
Signed-off-by: Filippo Valsorda <valsorda@google.com>
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 } |