Make successful tests silent
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
This commit is contained in:
committed by
Jason A. Donenfeld
parent
7bdc5eb54e
commit
84f52ce0d6
6
send.go
6
send.go
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user