Skip to content

Commit

Permalink
fix: kill the launch process
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlenny committed Feb 8, 2023
1 parent 19de155 commit 7e47c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ros_d2/ros_d2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def export_launch_files_command(wait: int):
]
click.echo(f"Running: {' '.join(command_launch)}")
# Run this command in a subprocess so we can end the process later
subprocess.run(command_launch)
process = subprocess.Popen(command_launch)
# Sleep for a bit so the process has time to start
time.sleep(wait)

Expand All @@ -89,7 +89,7 @@ def export_launch_files_command(wait: int):
subprocess.run(command_export)

# Kill the process
# process.kill()
process.kill()


if __name__ == "__main__":
Expand Down

0 comments on commit 7e47c7a

Please sign in to comment.