Skip to content

Commit

Permalink
only display join info on shutdownHookDelay>0
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jan 27, 2024
1 parent b3e65a6 commit aa3a2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jpos/src/main/java/org/jpos/q2/Q2.java
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ public void run () {
shuttingDown = true;
shutdown.countDown();
if (q2Thread != null) {
log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")");
if (shutdownHookDelay > 0)
log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")");
try {
q2Thread.join (SHUTDOWN_TIMEOUT);
} catch (InterruptedException ignored) {
Expand Down

0 comments on commit aa3a2ac

Please sign in to comment.