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

Fix device_watcher; start it on register_internal_device_callback #9503

Merged
merged 3 commits into from
Jul 29, 2021

Conversation

aangerma
Copy link
Contributor

@aangerma aangerma commented Jul 27, 2021

Device_hub API registers for events using register_internal_device_callback but this didn't start the device-watcher... we weren't getting device change notifications.

Tracked on DSO-11850

src/context.cpp Outdated Show resolved Hide resolved
src/context.cpp Outdated Show resolved Hide resolved
src/context.cpp Outdated Show resolved Hide resolved
src/context.cpp Outdated Show resolved Hide resolved

void context::start_device_watcher()
{
_device_watcher->start([this](platform::backend_device_group old, platform::backend_device_group curr)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not move the if( _device_watcher->is_stopped() ) in here?

@maloel maloel changed the title Start device_watcher on register_internal_device_callback also. Fix device_watcher; start it on register_internal_device_callback Jul 29, 2021
@maloel maloel merged commit aed7297 into IntelRealSense:development Jul 29, 2021
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.

2 participants