From 06330f503f7b9a5751edbaeb059f1e332d7c8580 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 18 Jul 2019 00:02:16 +0100 Subject: [PATCH] Recover if stillAlive fails --- src/tuntap/conn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tuntap/conn.go b/src/tuntap/conn.go index 0d63fde3..234c34f0 100644 --- a/src/tuntap/conn.go +++ b/src/tuntap/conn.go @@ -122,6 +122,7 @@ func (s *tunConn) writer() error { } func (s *tunConn) stillAlive() { + defer func() { recover() }() select { case s.alive <- struct{}{}: default: