mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-15 03:56:05 +00:00
Recover if stillAlive fails
This commit is contained in:
@ -122,6 +122,7 @@ func (s *tunConn) writer() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *tunConn) stillAlive() {
|
func (s *tunConn) stillAlive() {
|
||||||
|
defer func() { recover() }()
|
||||||
select {
|
select {
|
||||||
case s.alive <- struct{}{}:
|
case s.alive <- struct{}{}:
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user