ignore network errors instead of crashing

wrap some code paths which could cause uncaught
exceptions if called from one of the monado owned
threads.
This commit is contained in:
caszuu
2026-02-27 16:03:18 +01:00
committed by xytovl
parent a823df96d3
commit 9a81bc8213
3 changed files with 27 additions and 5 deletions
+9 -2
View File
@@ -1018,8 +1018,15 @@ void wivrn_session::run_net(std::stop_token stop)
if (stop.stop_requested())
break;
resume_session();
U_LOG_I("Headset connected, Session resumed.");
try
{
resume_session();
U_LOG_I("Headset connected, Session resumed.");
}
catch (const std::exception & e)
{
U_LOG_E("Exception on session resume: %s", e.what());
}
}
}
}