Skip to content

Commit

Permalink
add socket handleing
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Apr 30, 2024
1 parent 729a991 commit 108ddce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mqtt_ros_bridge/bridge_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ def main(args=None):

rclpy.spin(bridge_node)

bridge_node.mqtt_client.socket().shutdown()
bridge_node.mqtt_client.socket().close()

bridge_node.destroy_node()
rclpy.shutdown()

Expand Down

0 comments on commit 108ddce

Please sign in to comment.