Skip to content

Commit 1ce977c

Browse files
committed
nil udp connection on close
1 parent f5e2a2e commit 1ce977c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

telemetry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (t *AccTelemetry) Close() error {
187187
if err := t.udpConnection.Close(); err != nil {
188188
fmt.Println("failed to close the connection: ", err)
189189
}
190+
t.udpConnection = nil
190191
}
191192

192193
return nil

0 commit comments

Comments
 (0)