fix: potential deadlock in coordinator (#4598)

This commit is contained in:
Jon Ayers
2022-10-17 15:46:19 -05:00
committed by GitHub
parent 8ab4d26474
commit 9b4ab82044

View File

@ -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)
}