Skip to content

Commit

Permalink
Do not block when node is shut down
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Oehler committed Jun 25, 2024
1 parent 6b9fd8b commit 13a82ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller_manager/scripts/spawner
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def main():

services_found = False
while not services_found:
if rospy.is_shutdown():
return
try:
# loader
rospy.loginfo("Controller Spawner: Waiting for service "+load_controller_service)
Expand Down

0 comments on commit 13a82ce

Please sign in to comment.