Skip to content

Commit

Permalink
fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pxeger committed Jun 16, 2022
1 parent 0318b7f commit d1c8c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ato/invocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ func (invocation invocation) invoke() (*result, error) {
}
}

cmd.Wait()

if encodedStatus, err := os.ReadFile(path.Join(dir, "status")); err == nil {
if err = json.Unmarshal(encodedStatus, &result); err != nil {
return nil, err
Expand Down

0 comments on commit d1c8c2d

Please sign in to comment.