diff --git a/src/tuntap/conn.go b/src/tuntap/conn.go index 24d862e..0d63fde 100644 --- a/src/tuntap/conn.go +++ b/src/tuntap/conn.go @@ -113,9 +113,10 @@ func (s *tunConn) writer() error { } else { s.tun.log.Errorln(s.conn.String(), "TUN/TAP conn write error:", err) } + } else { + s.stillAlive() } util.PutBytes(b) - s.stillAlive() } } }