Stop reconnect loop if application closes
This commit is contained in:
@@ -342,9 +342,10 @@ void wivrn_session::reconnect()
|
|||||||
offset_est.reset();
|
offset_est.reset();
|
||||||
connection.reset(std::move(*tcp));
|
connection.reset(std::move(*tcp));
|
||||||
std::optional<xrt::drivers::wivrn::from_headset::packets> control;
|
std::optional<xrt::drivers::wivrn::from_headset::packets> control;
|
||||||
while (not(control = connection.poll_control(-1)))
|
while (not(control = connection.poll_control(100)))
|
||||||
{
|
{
|
||||||
// FIXME: timeout
|
// FIXME: timeout
|
||||||
|
quit_if_no_client(xrt_system);
|
||||||
}
|
}
|
||||||
const auto & info = std::get<from_headset::headset_info_packet>(*control);
|
const auto & info = std::get<from_headset::headset_info_packet>(*control);
|
||||||
// FIXME: ensure new client is compatible
|
// FIXME: ensure new client is compatible
|
||||||
|
|||||||
Reference in New Issue
Block a user