5
0
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:
Neil Alexander 2019-07-18 00:02:16 +01:00
parent 311c612f2e
commit 06330f503f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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: