From 2f1eef2675b7226f08d8a645fc847ca2f77536ad Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 11 Feb 2025 21:42:36 +0100 Subject: [PATCH] Always hold wifi lock if stream exists --- client/scenes/stream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 2934af9b..d63d6416 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -242,6 +242,7 @@ std::shared_ptr scenes::stream::create(std::unique_ptrwifi = 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()