From 1820511b15db39f8367556ae543db12048b4f463 Mon Sep 17 00:00:00 2001 From: Julian Schuler Date: Wed, 12 Feb 2025 18:04:39 +0100 Subject: [PATCH] Fix ignoring no_disconnect flag in post game --- tools/pepsi/src/post_game.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/pepsi/src/post_game.rs b/tools/pepsi/src/post_game.rs index 2252fe5cea..51617d4233 100644 --- a/tools/pepsi/src/post_game.rs +++ b/tools/pepsi/src/post_game.rs @@ -32,10 +32,12 @@ pub async fn post_game(arguments: Arguments) -> Result<()> { .await .wrap_err_with(|| format!("failed to execute systemctl hulk on {nao_address}"))?; - progress_bar.set_message("Disconnecting from WiFi..."); - nao.set_wifi(Network::None) - .await - .wrap_err_with(|| format!("failed to set network on {nao_address}"))?; + if !arguments.no_disconnect { + progress_bar.set_message("Disconnecting from WiFi..."); + nao.set_wifi(Network::None) + .await + .wrap_err_with(|| format!("failed to set network on {nao_address}"))?; + } progress_bar.set_message("Downloading logs..."); let log_directory = arguments.log_directory.join(nao_address.to_string());