Skip to content

Commit 6214e2a

Browse files
committed
fix race
1 parent 4b76942 commit 6214e2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tailnet/telemetry.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ func (b *TelemetryStore) pingPeer(conn *Conn) {
9696
if b.connectedIP == nil {
9797
return
9898
}
99+
ip := *b.connectedIP
99100
go func() {
100-
_, _, _, _ = conn.Ping(conn.watchCtx, *b.connectedIP)
101+
_, _, _, _ = conn.Ping(conn.watchCtx, ip)
101102
}()
102103
}
103104

0 commit comments

Comments
 (0)