mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 22:15:51 +00:00
wgengine/magicsock: synchronize epUpdate cleanup on shutdown.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
023df9239e
commit
86baf60bd4
@ -256,6 +256,7 @@ func (c *Conn) epUpdate(ctx context.Context) {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
if lastCancel != nil {
|
if lastCancel != nil {
|
||||||
lastCancel()
|
lastCancel()
|
||||||
|
<-lastDone
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
case <-c.startEpUpdate:
|
case <-c.startEpUpdate:
|
||||||
|
Loading…
Reference in New Issue
Block a user