Skip to content

Commit

Permalink
[Fix] Fixed shutting down pool executor too early
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Mar 10, 2024
1 parent 48f8fb0 commit 7909a2d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ public Runtime shutdown() throws ShutdownException {

try {

// shutdown executor pool
this.executorPool.destroy();

// remove shutdown monitoring thread
//java.lang.Runtime.getRuntime().removeShutdownHook(this.shutdownThread);

Expand All @@ -207,6 +204,10 @@ public Runtime shutdown() throws ShutdownException {
logger.error(e.getMessage(), e);
}
}

// shutdown executor pool
this.executorPool.destroy();

} catch (Exception e) {
logger.error("failed to 'shutdown(); '", e);
throw new ShutdownException(e);
Expand Down

0 comments on commit 7909a2d

Please sign in to comment.