wgengine/magicsock: synchronize epUpdate cleanup on shutdown.

Signed-off-by: David Anderson <danderson@tailscale.com>
crawshaw/derpdial
David Anderson 6 years ago
parent 023df9239e
commit 86baf60bd4

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

Loading…
Cancel
Save