mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-23 16:55:40 +00:00
Recover if stillAlive fails
This commit is contained in:
parent
311c612f2e
commit
06330f503f
@ -122,6 +122,7 @@ func (s *tunConn) writer() error {
|
||||
}
|
||||
|
||||
func (s *tunConn) stillAlive() {
|
||||
defer func() { recover() }()
|
||||
select {
|
||||
case s.alive <- struct{}{}:
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user