ipn/ipnlocal: fix Prefs access without mu being held

Noticed while working on a different fix.

Signed-off-by: Maisem Ali <[email protected]>
This commit is contained in:
Maisem Ali authored and Maisem Ali committed 2022-12-03 11:44:39 +05:00
1 parent cdb924f87b
commit 86b6ff61e6
1 file changed
+1 -1
+1 -1
View File
@@ -1167,8 +1167,8 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
b.logf("Start: already running; sending notify")
nm := b.netMap
state := b.state
b.mu.Unlock()
p := b.pm.CurrentPrefs()
b.mu.Unlock()
b.send(ipn.Notify{
State: &state,
NetMap: nm,