Skip to content

Commit

Permalink
avoid recursion when taxi parking cannot be reached ref #14115
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Feb 13, 2024
1 parent acc75c4 commit 1e24e59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/microsim/devices/MSIdling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/****************************************************************************/
/// @file MSIdling.cpp
/// @author Jakob Erdmann
/// @author Mirko Barthauer
/// @date 17.08.2020
///
// An algorithm that performs Idling for the taxi device
Expand Down Expand Up @@ -208,9 +209,10 @@ MSIdling_TaxiStand::idle(MSDevice_Taxi* taxi) {
std::string error;
if (!veh.insertStop(nextStopIndex, stop, "taxi:taxistand", false, error)) {
WRITE_WARNING("Stop insertion failed for idling taxi '" + veh.getID() + "' (" + error + ").");
} else {
//std::cout << SIMTIME << " taxistandsVeh=" << veh.getID() << " driving to parkingArea " << pa->getID() << "\n";
veh.activateReminders(MSMoveReminder::NOTIFICATION_PARKING_REROUTE, &pa->getLane());
}
//std::cout << SIMTIME << " taxistandsVeh=" << veh.getID() << " driving to parkingArea " << pa->getID() << "\n";
veh.activateReminders(MSMoveReminder::NOTIFICATION_PARKING_REROUTE, &pa->getLane());
} else {
//std::cout << SIMTIME << " taxistandsVeh=" << veh.getID() << " already driving to parkingArea\n";
}
Expand Down

0 comments on commit 1e24e59

Please sign in to comment.