Skip to content

Commit

Permalink
fix bicycle score handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed May 27, 2024
1 parent de96dbd commit 0360f90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class BicycleScoreEventsCreator implements
}

@Override public void handleEvent( VehicleLeavesTrafficEvent event ){
vehicle2driver.handleEvent( event );
if ( this.bicycleConfig.isMotorizedInteraction() ){
// dec count by one:
String mode = this.modeFromVehicle.get( event.getVehicleId() );
Expand All @@ -155,6 +154,8 @@ class BicycleScoreEventsCreator implements
} else {
log.warn( "no driver found for vehicleId=" + event.getVehicleId() + "; not clear why this could happen" );
}
// Needs to be called last, because it will remove driver information
vehicle2driver.handleEvent( event );
// ---
}

Expand Down

0 comments on commit 0360f90

Please sign in to comment.