Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
taildrop: fix theoretical race condition (tailscale#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> Signed-off-by: Alex Paguis <alex@windscribe.com>
- Loading branch information