mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-27 09:01:31 +01:00
d/uvc: Mark stream as not running before locking event waiting
Fixes a race condition on exit Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2750>
This commit is contained in:
1 parent
2a8ba96282
commit
bfdfdb7a85
1 file changed
+1
-1
@@ -381,8 +381,8 @@ uvc_fs_stream_stop(struct xrt_fs *xfs)
|
||||
strerror(errno));
|
||||
}
|
||||
|
||||
libusb_lock_event_waiters(stream->usb_ctx);
|
||||
stream->is_running = false;
|
||||
libusb_lock_event_waiters(stream->usb_ctx);
|
||||
|
||||
// Wait for active transfers to finish
|
||||
while (stream->active_transfers > 0) {
|
||||
|
||||
Reference in new issue
Block a user