mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 21:28:50 +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)) {
|
if (!hololens_sensors_read_packets(wh)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
os_thread_helper_lock(&wh->oth);
|
||||||
}
|
}
|
||||||
|
os_thread_helper_unlock(&wh->oth);
|
||||||
|
|
||||||
WMR_DEBUG(wh, "Exiting reading thread.");
|
WMR_DEBUG(wh, "Exiting reading thread.");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue