Skip to content

Commit

Permalink
thread join safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
marinagmoreira committed Dec 12, 2023
1 parent 626a51f commit 1686c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astrobee/survey_manager/scripts/command_astrobee
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ class ProcessExecutor:
print("Killing input thread...")
self._stop_event.set()
input_thread.join()
output_thread.join() # In normal scenarios this should have already happened
if output_thread.is_alive():
output_thread.join()

# Get the final exit code
return return_code
Expand Down

0 comments on commit 1686c12

Please sign in to comment.