Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/osvr/Connection/DeviceToken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ bool OSVR_DeviceTokenObject::releaseObject(void *obj) {

void OSVR_DeviceTokenObject::setDeviceDescriptor(
std::string const &jsonString) {
auto guard = getSendGuard();
guard->lock();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to call unlock() or does a destructor take care of that? (I gave up tracing through the code after 10 minutes.)

m_getConnectionDevice()->setDeviceDescriptor(jsonString);
m_getConnection()->triggerDescriptorHandlers();
}
Expand Down