Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avahicore and avahiclient: fixed TXT records update on existing services #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morixhub
Copy link
Contributor

@morixhub morixhub commented May 5, 2022

Hello. I just noticed that using avahi (avahicore/avahiclient) TXT records of existing services are not getting updated properly...

I mean: if you have an existing service on the network and then update its TXT records somehow QtZeroConf successfully emits the corresponding serviceUpdated() signal, but the QZeroConfService object passed as parameter still references the previous TXT records (the records before the service update).

It's easy to fix that by simply re-processing TXT records before emitting the signal... the same process is already in place for newly-detected services and so it is enough to move the corresponding code block outside the if (considering the clear the m_txt collection anyway before doing that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant