Skip to content

Commit

Permalink
Proper subscription destruction
Browse files Browse the repository at this point in the history
Signed-off-by: Kacper Dąbrowski <[email protected]>
  • Loading branch information
knicked committed Sep 13, 2024
1 parent dd8ea55 commit d75e7ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rai_extensions/rai_nomad/rai_nomad/nomad.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def start_callback(self, msg):
def stop_callback(self, msg):
if self.image_subscription is not None:
self.get_logger().info("Received stop signal")
self.destroy_subscription(self.image_subscription)
self.image_subscription = None
self.timer.cancel()
self.timer = None
Expand Down

0 comments on commit d75e7ca

Please sign in to comment.