File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
contribs/drt/src/main/java/org/matsim/contrib/drt/prebooking Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -436,14 +436,14 @@ private void processRejections(double now) {
436
436
MobsimAgent agent = internalInterface .getMobsim ().getAgents ().get (personId );
437
437
438
438
if (agent != null ) {
439
- PlanElement planElement = WithinDayAgentUtils .getCurrentPlanElement (agent );
440
- if (planElement instanceof Activity activity ) {
439
+ if (WithinDayAgentUtils .getCurrentPlanElement (agent ) instanceof Activity activity ) {
441
440
abortAgent (agent , activity , now );
441
+ stuckIterator .remove ();
442
442
}
443
443
} else {
444
444
// the agent no longer exists in the mobsim, we assume it is already been handled elsewhere. nkuehnel, march'25
445
+ stuckIterator .remove ();
445
446
}
446
- stuckIterator .remove ();
447
447
}
448
448
}
449
449
You can’t perform that action at this time.
0 commit comments