wgengine/magicsock: synchronize epUpdate cleanup on shutdown.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2020-03-10 17:29:45 -07:00
parent 023df9239e
commit 86baf60bd4

View File

@ -256,6 +256,7 @@ func (c *Conn) epUpdate(ctx context.Context) {
case <-ctx.Done():
if lastCancel != nil {
lastCancel()
<-lastDone
}
return
case <-c.startEpUpdate: