Always hold wifi lock if stream exists

This commit is contained in:
Patrick Nicolas
2025-02-12 10:12:19 +01:00
parent d46d5b7bc5
commit 2f1eef2675
+1 -2
View File
@@ -242,6 +242,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
.queryCount = size_gpu_timestamps,
});
self->wifi = application::get_wifi_lock().get_wifi_lock();
return self;
}
@@ -277,7 +278,6 @@ void scenes::stream::on_focused()
plots_toggle_2 = get_action("plots_toggle_2").first;
}
wifi = application::get_wifi_lock().get_wifi_lock();
assert(video_stream_description);
setup_reprojection_swapchain();
}
@@ -286,7 +286,6 @@ void scenes::stream::on_unfocused()
{
imgui_ctx.reset();
swapchain_imgui = xr::swapchain();
wifi.reset();
}
scenes::stream::~stream()