mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +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})
|
data, err := json.Marshal([]*Node{&node})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
c.mutex.Unlock()
|
||||||
return xerrors.Errorf("marshal nodes: %w", err)
|
return xerrors.Errorf("marshal nodes: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user