Skip to content

Commit

Permalink
Switch shutdown to shutdownNow in executors (#1841)
Browse files Browse the repository at this point in the history
Signed-off-by: TRS1SF3 <[email protected]>
  • Loading branch information
strailov authored Sep 11, 2024
1 parent b1f9991 commit 48db65a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ public void start(final ScheduledExecutorService executorService) {

public void stop() {
if (executorService != null) {
executorService.shutdown();
executorService.shutdownNow();
}
executorService = null;
lastActionId = null;
currentActionId = null;
}

private void poll() {
log.debug(LOG_PREFIX + " Polling ...", tenantId, controllerId);
Optional.ofNullable(executorService).ifPresent(executor ->
getControllerBase().ifPresentOrElse(
controllerBase -> {
Expand Down

0 comments on commit 48db65a

Please sign in to comment.