mirror of https://github.com/tailscale/tailscale/
taildrop: fix theoretical race condition (#9866)
WaitGroup.Wait should not be concurrently called WaitGroup.Add. In other words, we should not start new goroutines after shutodwn is called. Thus, add a conditional to check that shutdown has not been called before starting off a new waitAndDelete goroutine. Updates tailscale/corp#14772 Signed-off-by: Joe Tsai <joetsai@digital-static.net>pull/9846/head
parent
756a4c43b6
commit
a8fbe284b2
Loading…
Reference in New Issue