add lock around saving ts clients
Closes #1544 Co-Authored-By: Patrick Huang <huangxiaoman@gmail.com> Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
4c12c02e71
commit
9ccf87c566
2 changed files with 7 additions and 3 deletions
|
@ -197,7 +197,9 @@ func (s *EmbeddedDERPServerScenario) CreateTailscaleIsolatedNodesInUser(
|
|||
)
|
||||
}
|
||||
|
||||
s.mu.Lock()
|
||||
user.Clients[tsClient.Hostname()] = tsClient
|
||||
s.mu.Unlock()
|
||||
|
||||
return nil
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue