Skip to content

Commit

Permalink
Fix race condition with container run caused by regression (#2945)
Browse files Browse the repository at this point in the history
* ..

* Fix race condition with container run caused by regression
  • Loading branch information
aviramha authored Nov 28, 2024
1 parent c7d7f34 commit 4e4adb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2944.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix race condition with container run caused by regression
4 changes: 3 additions & 1 deletion mirrord/cli/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ pub(crate) async fn container_command(
.status()
.await;

let _ = composed_config_file.close();
if let Err(err) = composed_config_file.keep() {
tracing::warn!(?err, "failed to keep composed config file");
}

match runtime_command_result {
Err(err) => {
Expand Down

0 comments on commit 4e4adb6

Please sign in to comment.