Skip to content

Commit 7851fb1

Browse files
committed
Fix unlock of unlocked mutex in tailnet coordinator
1 parent 211ffab commit 7851fb1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tailnet/coordinator.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,10 @@ func (c *coordinator) ServeClient(conn net.Conn, id uuid.UUID, agent uuid.UUID)
153153
if ok {
154154
data, err := json.Marshal([]*Node{node})
155155
if err != nil {
156-
c.mutex.Unlock()
157156
return xerrors.Errorf("marshal node: %w", err)
158157
}
159158
_, err = conn.Write(data)
160159
if err != nil {
161-
c.mutex.Unlock()
162160
return xerrors.Errorf("write nodes: %w", err)
163161
}
164162
}

0 commit comments

Comments
 (0)