ipn/ipnlocal: use lockAndGetUnlock in Start

This removes one of the Lock,Unlock,Lock,Unlock at least in
the Start function. Still has 3 more of these.

Updates #11649

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2024-05-07 23:42:45 +00:00
committed by Maisem Ali
parent e1011f1387
commit 9380e2dfc6
2 changed files with 22 additions and 25 deletions

View File

@@ -316,6 +316,7 @@ func TestStateMachine(t *testing.T) {
if err != nil {
t.Fatalf("NewLocalBackend: %v", err)
}
b.DisablePortMapperForTest()
var cc, previousCC *mockControl
b.SetControlClientGetterForTesting(func(opts controlclient.Options) (controlclient.Client, error) {