Skip to content

Fix device_watcher; start it on register_internal_device_callback - #9503

Merged
maloel merged 3 commits into
realsenseai:developmentfrom
aangerma:DSO-11850
Jul 29, 2021
Merged

Fix device_watcher; start it on register_internal_device_callback#9503
maloel merged 3 commits into
realsenseai:developmentfrom
aangerma:DSO-11850

Conversation

@aangerma

@aangerma aangerma commented Jul 27, 2021

Copy link
Copy Markdown
Contributor

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

Comment thread src/context.cpp Outdated
Comment thread src/context.cpp Outdated
Comment thread src/context.cpp Outdated
Comment thread src/context.cpp Outdated
Comment thread src/context.cpp

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

Copy link
Copy Markdown
Contributor

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 realsenseai: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