mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-09 14:34:06 +00:00
remove some lossy channel sends that should be safe to allow to block
This commit is contained in:
@ -72,11 +72,7 @@ func (s *tunConn) reader() (err error) {
|
||||
}
|
||||
} else if n > 0 {
|
||||
bs := append(util.GetBytes(), b[:n]...)
|
||||
select {
|
||||
case s.tun.send <- bs:
|
||||
default:
|
||||
util.PutBytes(bs)
|
||||
}
|
||||
s.tun.send <- bs
|
||||
s.stillAlive()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user