diff --git a/OsmAnd-java/src/net/osmand/router/RoutingConfiguration.java b/OsmAnd-java/src/net/osmand/router/RoutingConfiguration.java index 7b7d4ca14d..4098427f07 100644 --- a/OsmAnd-java/src/net/osmand/router/RoutingConfiguration.java +++ b/OsmAnd-java/src/net/osmand/router/RoutingConfiguration.java @@ -114,8 +114,10 @@ public class RoutingConfiguration { } public void addImpassableRoad(RouteDataObject r) { - impassableRoadIds.add(r.id); - impassableRoads.add(r); + if (!impassableRoadIds.contains(r.id)){ + impassableRoadIds.add(r.id); + impassableRoads.add(r); + } }