mirror of https://github.com/coder/coder.git
chore: use mutex around `blockEndpoints` (#8209)
https://github.com/coder/coder/actions/runs/5378950122/jobs/9759972142
This commit is contained in:
parent
4539ce7db6
commit
f40865bc2f
|
@ -709,9 +709,11 @@ func (c *Conn) selfNode() *Node {
|
|||
DERPLatency: derpLatency,
|
||||
DERPForcedWebsocket: derpForcedWebsocket,
|
||||
}
|
||||
c.mutex.Lock()
|
||||
if c.blockEndpoints {
|
||||
node.Endpoints = nil
|
||||
}
|
||||
c.mutex.Unlock()
|
||||
return node
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue