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

Only sends one discovery request #5

Closed
ghost opened this issue May 12, 2018 · 0 comments
Closed

Only sends one discovery request #5

ghost opened this issue May 12, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented May 12, 2018

The client only sends one msearch request if discoverServices is called.

sendDiscoveryRequest() is scheduled at a rate (see https://github.com/resourcepool/ssdp-client/blob/master/src/main/java/io/resourcepool/ssdp/client/impl/SsdpClientImpl.java#L88), but it deletes the requests after the first invocation (see https://github.com/resourcepool/ssdp-client/blob/master/src/main/java/io/resourcepool/ssdp/client/impl/SsdpClientImpl.java#L154) so that it does not send them again (https://github.com/resourcepool/ssdp-client/blob/master/src/main/java/io/resourcepool/ssdp/client/impl/SsdpClientImpl.java#L139). A workaround would be to restart the discovery process, but it would be better to simply keep the requests.

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

0 participants