Skip to content

Commit

Permalink
fix: preparation_mode failing to stop openrouteservice after building…
Browse files Browse the repository at this point in the history
… a graph
  • Loading branch information
takb committed Feb 6, 2025
1 parent c66f0c0 commit 5e9f774
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void contextInitialized(ServletContextEvent contextEvent) {
}
if (Boolean.TRUE.equals(engineProperties.getPreparationMode())) {
LOGGER.info("Running in preparation mode, all enabled graphs are built, job is done.");
RoutingProfileManagerStatus.setShutdown(true);
System.exit(RoutingProfileManagerStatus.hasFailed() ? 1 : 0);
}
} catch (Exception e) {
LOGGER.warn("Unable to initialize ORS due to an unexpected exception: " + e);
Expand Down

0 comments on commit 5e9f774

Please sign in to comment.