Skip to content

Commit

Permalink
Workaround for IntelRealSense#10482
Browse files Browse the repository at this point in the history
  • Loading branch information
v-lopez authored and meyerj committed Mar 11, 2024
1 parent 23b0904 commit 4a23440
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ namespace librealsense

void add_software_device(std::shared_ptr<device_info> software_device);

void stop_device_watcher()
{
if (!_device_watcher->is_stopped())
_device_watcher->stop();
}

#if WITH_TRACKING
void unload_tracking_module();
#endif
Expand Down
1 change: 1 addition & 0 deletions src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ device::device(std::shared_ptr<context> ctx,

device::~device()
{
_context->stop_device_watcher();
if (_device_changed_notifications)
{
_context->unregister_internal_device_callback(_callback_id);
Expand Down

0 comments on commit 4a23440

Please sign in to comment.