Skip to content

Commit 9b4ab82

Browse files
authored
fix: potential deadlock in coordinator (#4598)
1 parent 8ab4d26 commit 9b4ab82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tailnet/coordinator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ func (c *coordinator) handleNextAgentMessage(id uuid.UUID, decoder *json.Decoder
313313
}
314314
data, err := json.Marshal([]*Node{&node})
315315
if err != nil {
316+
c.mutex.Unlock()
316317
return xerrors.Errorf("marshal nodes: %w", err)
317318
}
318319

0 commit comments

Comments
 (0)