Skip to content

Commit

Permalink
only remove if lane_idx exist in closed_lanes (#276)
Browse files Browse the repository at this point in the history
Signed-off-by: will <[email protected]>
  • Loading branch information
piliwilliam0306 authored Jan 23, 2025
1 parent cbe371a commit 989135c
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 989135c

Please sign in to comment.