mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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