mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
chore: use mutex around blockEndpoints (#8209)
https://github.com/coder/coder/actions/runs/5378950122/jobs/9759972142
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user