mirror of https://github.com/tailscale/tailscale/
ipnlocal: fix deadlock in RequestEngineStatusAndWait() error path.
If the engine was shutting down from a previous session (e.closing=true), it would return an error code when trying to get status. In that case, ipnlocal would never unblock any callers that were waiting on the status. Not sure if this ever happened in real life, but I accidentally triggered it while writing a test. Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>pull/1923/head
parent
5a7c6f1678
commit
285d0e3b4d
Loading…
Reference in New Issue