Skip to content

Commit

Permalink
Fixed availableVehicles disappearing when the person is not at home.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaopen committed Apr 14, 2022
1 parent 12f5346 commit 4d3e22d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class HouseholdFleetManager(
rest
case _ =>
logger.error(s"THE LIST OF VEHICLES SHOULDN'T BE EMPTY")
Nil
availableVehicles
}
}
}
Expand All @@ -168,7 +168,7 @@ class HouseholdFleetManager(
case _ =>
logger.debug(s"Not returning vehicle because no default is defined or agent is not at home")
sender() ! MobilityStatusResponse(Vector(), triggerId)
Nil
availableVehicles
}
}

Expand Down

0 comments on commit 4d3e22d

Please sign in to comment.