Merge pull request #20 from alexichepura/wait-frame-lock-match

xr_wait_frame lock match instead of unwrap
This commit is contained in:
ForTehLose
2023-10-24 10:07:10 -04:00
committed by GitHub

View File

@@ -259,7 +259,13 @@ pub fn xr_begin_frame(
}
{
let _span = info_span!("xr_wait_frame").entered();
*frame_state.lock().unwrap() = frame_waiter.lock().unwrap().wait().unwrap();
*frame_state.lock().unwrap() = match frame_waiter.lock().unwrap().wait() {
Ok(a) => a,
Err(e) => {
warn!("error: {}", e);
return;
}
};
}
{
let _span = info_span!("xr_begin_frame").entered();