Skip to content

Commit

Permalink
Fix ignoring no_disconnect flag in post game
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschuler committed Feb 12, 2025
1 parent c39c05f commit 1820511
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/pepsi/src/post_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1820511

Please sign in to comment.