mirror of https://github.com/tailscale/tailscale/
wgengine/magicsock: fix deadlock on shutdown
This fixes a deadlock on shutdown. One goroutine is waiting to send on c.derpRecvCh before unlocking c.mu. The other goroutine is waiting to lock c.mu before receiving from c.derpRecvCh. #3736 has a more detailed explanation of the sequence of events. Fixes #3736 Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>pull/3775/head
parent
390490e7b1
commit
de4696da10
Loading…
Reference in New Issue