fix spurious endless mdns response

This commit is contained in:
Patricio Whittingslow
2026-03-16 15:59:52 -03:00
parent bd645b5e1e
commit 3cdb0a83fd
2 changed files with 40 additions and 0 deletions
+1
View File
@@ -227,6 +227,7 @@ func (c *Client) encapsResponse(frame []byte) (int, error) {
if err != nil {
return 0, err
}
c.rans = c.rans[:0] // Drain pending answers after successful send.
return len(data), nil
}