Skip to content

Commit

Permalink
Fix #55: Poll subcommands when accessing Pipeline.returncodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Jan 1, 2022
1 parent 7b6ef15 commit df50220
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sarge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,9 +1123,8 @@ def returncodes(self):
for c in self.commands:
rc = None
if c.process:
rc = c.process.returncode
rc = c.process.poll()
result.append(rc)
# result = [c.process.returncode for c in self.commands]
return result

def wait_events(self):
Expand Down

0 comments on commit df50220

Please sign in to comment.