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 Feb 2, 2024
1 parent 6768a75 commit 6c9b062
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 @@ -436,7 +436,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 6c9b062

Please sign in to comment.