mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
fix: potential deadlock in coordinator (#4598)
This commit is contained in:
@ -313,6 +313,7 @@ func (c *coordinator) handleNextAgentMessage(id uuid.UUID, decoder *json.Decoder
|
||||
}
|
||||
data, err := json.Marshal([]*Node{&node})
|
||||
if err != nil {
|
||||
c.mutex.Unlock()
|
||||
return xerrors.Errorf("marshal nodes: %w", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user