d/wmr: Fix a small lock handling mistake

In the wmr handling thread, make sure lock
handling is symmetrical in all code paths.
This commit is contained in:
Jan Schmidt 2021-11-14 03:02:30 +11:00 committed by Jakob Bornecrantz
parent cef025a546
commit 7fb94889a8

View file

@ -294,7 +294,9 @@ wmr_run_thread(void *ptr)
if (!hololens_sensors_read_packets(wh)) {
break;
}
os_thread_helper_lock(&wh->oth);
}
os_thread_helper_unlock(&wh->oth);
WMR_DEBUG(wh, "Exiting reading thread.");