mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Only flag stillAlive on successful write
This commit is contained in:
parent
307b24d8cb
commit
311c612f2e
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue