Skip to content

Commit f7bf80d

Browse files
committed
fix: Run status callbacks async to solve tailnet race
1 parent 1a5d3ea commit f7bf80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tailnet/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (c *Conn) SetNodeCallback(callback func(node *Node)) {
280280
c.lastEndpoints = endpoints
281281
node := makeNode()
282282
c.lastMutex.Unlock()
283-
callback(node)
283+
go callback(node)
284284
})
285285
}
286286

0 commit comments

Comments
 (0)