mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
ipn/ipnlocal: fix another read of keyExpired outside mutex
Updates #12039 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:

committed by
Anton Tolchanov

parent
e968b0ecd7
commit
6f4a1dc6bf
@@ -2486,7 +2486,7 @@ func (b *LocalBackend) popBrowserAuthNow() {
|
||||
// Deconfigure the local network data plane if:
|
||||
// - seamless key renewal is not enabled;
|
||||
// - key is expired (in which case tailnet connectivity is down anyway).
|
||||
if !b.seamlessRenewalEnabled() || b.keyExpired {
|
||||
if !b.seamlessRenewalEnabled() || expired {
|
||||
b.blockEngineUpdates(true)
|
||||
b.stopEngineAndWait()
|
||||
}
|
||||
|
Reference in New Issue
Block a user