Skip to content

Commit

Permalink
feat(capturer): add Timeout notes
Browse files Browse the repository at this point in the history
Signed-off-by: Yiyang Wu <[email protected]>
  • Loading branch information
ToolmanP committed Nov 24, 2024
1 parent 86fef9b commit 7bb541a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/capturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def main(args: argparse.Namespace):
try:
line = await asyncio.wait_for(process.stdout.readline(), args.timeout)
except asyncio.TimeoutError:
print("Terminated Due to Timeout.")
break
if len(line) == 0 and process.returncode is not None:
break
Expand Down

0 comments on commit 7bb541a

Please sign in to comment.