mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-20 05:01:04 +00:00
ipn/ipnlocal: fix Prefs access without mu being held
Noticed while working on a different fix. Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
cdb924f87b
commit
86b6ff61e6
@ -1167,8 +1167,8 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
|
|||||||
b.logf("Start: already running; sending notify")
|
b.logf("Start: already running; sending notify")
|
||||||
nm := b.netMap
|
nm := b.netMap
|
||||||
state := b.state
|
state := b.state
|
||||||
b.mu.Unlock()
|
|
||||||
p := b.pm.CurrentPrefs()
|
p := b.pm.CurrentPrefs()
|
||||||
|
b.mu.Unlock()
|
||||||
b.send(ipn.Notify{
|
b.send(ipn.Notify{
|
||||||
State: &state,
|
State: &state,
|
||||||
NetMap: nm,
|
NetMap: nm,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user