mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
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:
parent
cef025a546
commit
7fb94889a8
|
@ -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.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue