wgengine/magicsock: synchronize epUpdate cleanup on shutdown.

Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
David Anderson committed 2020-03-10 18:00:37 -07:00
1 parent 023df9239e
commit 86baf60bd4
1 file changed
+1
+1
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: