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

ServiceInfo.setText() not working within state probe #252

Open
remi0023 opened this issue Jun 23, 2023 · 0 comments
Open

ServiceInfo.setText() not working within state probe #252

remi0023 opened this issue Jun 23, 2023 · 0 comments

Comments

@remi0023
Copy link

Hi, One of my services tried to update it's TXT record right after it gets registered. But nothing happened. Debugging the situation showed that at the time ServiceInfo.setText() was called the
corresponding ServiceInfo instance were in state 'probe'.
Waiting a bit, until the ServiceInfo instance reached state 'announced', before calling setText() fixed it.
Checking the internal states requires a downcast, because it is not part of the public interface, which is a bit ugly.:/

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

No branches or pull requests

1 participant