Skip to content

Commit

Permalink
only remove if lane_idx exist in closed_lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
piliwilliam0306 committed Jan 23, 2025
1 parent cbe371a commit 9059995
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ def lane_request_cb(msg):
closed_lanes.add(lane_idx)

for lane_idx in msg.open_lanes:
closed_lanes.remove(lane_idx)
if lane_idx in closed_lanes:
closed_lanes.remove(lane_idx)

state_msg = ClosedLanes()
state_msg.fleet_name = fleet_name
Expand Down

0 comments on commit 9059995

Please sign in to comment.