mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +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